August 22, 2026 · The Minely team
How to build a reminders bot with AI (durations, persistence, recurring)
A reminders bot is the quiet productivity win of any Discord community: /remind me in 2 hours to check the arena, and it simply happens. The trick is doing it reliably — durations people actually type, persistence through restarts, and delivery that always lands.
What a reminders bot actually is
A reminders bot lets members set personal reminders with natural durations (2h, 30m, friday 6pm), stores them durably, and delivers a DM or channel message when the time comes. Recurring reminders handle the weekly event nobody wants to re-create.
How it works under the hood
The command parses the duration into a timestamp, stores a record (user, channel or DM, text, fire time, recurrence), and a scheduler loop checks due reminders every few seconds. Persistence is a real store, not memory — a restart should lose nothing. Delivery tries DM first with a channel fallback for closed DMs, and recurring rules reschedule after each fire.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a reminders bot with /remind me in 2 hours, persistent reminders across restarts, DM delivery, and recurring reminders
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Implement the duration parser and the reminder record.
- Build the scheduler loop with due checks.
- Add DM delivery with channel fallback.
- Implement recurrence and a /remind list + cancel.
- Polish with timezone handling and a confirm reaction.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
The duration parser is the product: 10m, 2h, 3d, and weekday-with-time cover almost everything; anything fancier confuses more than it helps. A /remind list with cancel buttons is the feature users discover and love.
Tips that save you a rebuild
- Persist on every change; the one-restart-loses-all bug is a trust-killer.
- Confirm with the absolute time shown back ("I'll remind you at 18:00"), not just 'ok'.
- Fall back to the channel when DMs are closed, and say so.
- Cap active reminders per user to keep the scheduler honest.
Questions people ask
Can I remind a whole channel?
A channel-targeted reminder with a staff permission, perfect for event pings.
What about snoozing?
A snooze button on the delivered reminder reschedules it with one click.
How do recurring rules end?
A count limit (10 fires) or an end date; endless recurrences are a maintenance debt.
Try the prompt above on a fresh project. You will see the plan, the code streaming in, and the repair loop finish the job — then a jar to download.
