I built a Discord bot to plan my week (and it costs $0)
It reads Canvas, fills my Google Calendar, and bugs me in Discord every morning. No server, it just lives on GitHub Actions
- discord
- python
- github-actions
- side-project

The problem
Ok so every week was kind of a mess. Assignments were all over Canvas, CS 396 has its own random course website, exam dates were buried in syllabi I read once in September, LeetCode was a "I'll do it sometime" thing, and interview prep basically only happened the night before an OA. My calendar knew when my classes were and that's it.
I didn't need more motivation lol. I needed something to look at everything once a week, make the plan for me, and then remind me somewhere I actually check. For me that's Discord.
The approach
One week at a time. Every Sunday at 9pm it plans Monday through Sunday and that's it. Plans for three weeks out are already wrong the second a club meeting moves. A week is short enough to actually stay true.
Discord is the whole UI. I made a server called Study HQ and the bot runs it:
#availabilityis where I just type when I'm busy, likeTue 2-5pmorSat all dayor10/21 9am-12pm. If it gets what I meant it reacts 👍. If it can't read it, it complains in the logs instead of quietly ignoring me, which was important to me.#daily-goalsgets one message per goal every morning. I react ✅ when I finish something, and whatever I didn't finish rolls over to the next day.#weekly-summary, a channel for each class,#leetcodeand#interview-prepget the Sunday plan, split up so each thing is where I'd go look for it.#bot-logsand#bot-updatesare for the bot itself. Every run posts a little summary and pings me if something broke. When I ship a new version it posts its own changelog, which is honestly my favorite part.
Google Calendar decides the times. The bot puts study blocks on a separate "Study Plan" calendar. If I drag a block somewhere else, the next morning's post just follows it, I don't have to tell the bot anything. And if the bot ever does something dumb I can hide that one calendar without touching my real one.
It's really three planners in one:
- Classes: an hour per course, worked around my classes, whatever's on my calendar, and what I put in
#availability. It also adds review blocks 3 days before every exam. - LeetCode: Blind 75 in Python from the top, three sessions a week. Every problem comes with the pattern and a tip so I'm not just staring at it.
- Interview prep: rotates between behavioral/STAR stuff and OA practice, and switches to prep for a specific company when an OA or interview shows up on my calendar. It even pulls the company name out of calendar events titled like "OA due – Company".
What shipped
It's written in Python and it runs on GitHub Actions. So no server, nothing running on my laptop, and I pay nothing. The "bot" only exists for a few seconds at a time: a scheduled workflow starts it, it does its thing, and it's gone.
That decision is where pretty much all the fun problems came from:
GitHub's scheduler only does UTC and it's late a lot. Scheduled runs can start way late. I live on Eastern time, and daylight saving flips on Nov 1. So I scheduled every job at three different UTC times. Each run checks what time it actually is in Eastern and whether that job already ran, and if it's not the right one it just quietly exits. Bonus: that handles daylight saving for free.
No server means no database either. All the state (Blind 75 progress, which messages are which goals, which runs already happened) lives in one JSON file. After every run the workflow commits it back to the repo. So git is my database now lol. It's also why the repo's private.
Stevens doesn't let students make Canvas API tokens. Kind of a bummer. So instead the bot reads the Canvas calendar feed (that .ics link at the bottom of the Canvas calendar). The catch is the feed has no idea if I already submitted something, so sometimes it tells me something's due after I've turned it in. I just ✅ it and move on. The feed also sometimes lists the same assignment twice, so the bot collapses duplicates now.
Google Calendar goes through a service account. That's basically a robot Google account that I shared my calendars with. It can read my main calendar and only write to Study Plan. No login screens and no tokens expiring on me at 2am.
The scheduling part doesn't talk to anything. The code that actually figures out the plan is just functions in, plan out, so I can unit test it without touching Discord or Google at all. There's also a dry-run mode where it posts everything to #bot-logs and writes nothing, which is how I tested it before I let it near my real calendar.
So far there are three versions:
- v0.1.0: first live version. Weekly plan, daily goals, ✅ tracking, logs.
- v0.1.1: morning post moved to 6am, it recovers when it runs late, and a missing pin permission is just a warning now instead of crashing the whole run.
- v0.2.0: cleaner posts. Goals start with what to actually do ("Solve 3 LeetCode problems"), the time is just a little footnote, and no more link preview spam.
The bug that got me
The very first Sunday it went live, GitHub started my scheduled runs 4 to 5 hours late. Not 30 minutes. Hours. I'd planned around "it might be a little late," not "your Sunday 9pm planner is running at 2am Monday."
So the fix was making it not care. The weekly planner is allowed to run any time on Monday now, and if Monday's daily run sees the week hasn't been planned yet, it plans it first. I also moved the daily goals from 8am to 6am, so even if GitHub is hours behind, my goals are there by the time I actually wake up. Free cron is free for a reason lol.
What's next
- Re-planning from Discord. Right now if I want to re-plan mid-week I go to GitHub, open Actions and hit Run workflow. I'd rather just type a command in Discord.
- Knowing what I already submitted. If I ever get a Canvas API token the bot already knows how to switch to the API, and then "due soon" goals would disappear on their own once I turn something in.
- A weekly scorecard. I'm already tracking every ✅, so the Sunday summary could show how much of last week's plan I actually did.
One thing I decided not to do: the first version called the Claude API to write the LeetCode tips and interview prep. I ripped that out and baked the content in instead, a pattern and tip for every Blind 75 problem plus a rotating interview plan. No API key, no bill, and it says the same thing every time, which is what I want from a planner.
It's been running every single day since it went live, and I haven't had to touch it. The commit history is literally just the bot checking in every morning, which is kind of nice to look at. Turns out I didn't need a better planner app, I just needed one that shows up in the place I was already wasting time.