The Reminders feature turns channel topics into cron schedules. When the bot starts (or a channel is created or updated), it reads the topic, parses any reminder definitions, and schedules recurring messages with threads.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Effect-TS/discord-bot/llms.txt
Use this file to discover all available pages before exploring further.
Topic format
Embed one or more reminders in a channel’s topic using the following syntax:Standard 5-field cron expressions are supported (minute, hour, day-of-month, month, day-of-week). Effect’s
Cron module parses the expression — invalid expressions are logged and skipped.What happens on schedule
When a cron fires, the bot:- Posts the reminder message to the channel.
- Creates a thread from that message named
{date} - {message}(e.g.Mon Mar 25 2026 - Weekly standup time!).
Reminders.ts
Parsing the topic
TheparseTopic function uses a regular expression to extract all [reminder:...:...] blocks and parses each cron expression independently:
Reminders.ts
Gateway events
The bot listens to the following Discord gateway events to keep schedules in sync:| Event | Action |
|---|---|
GUILD_CREATE | Schedules reminders for all channels in the guild on startup. |
CHANNEL_CREATE | Schedules reminders for the new channel. |
CHANNEL_UPDATE | Cancels existing schedules and re-parses the updated topic. |
CHANNEL_DELETE | Cancels any running schedules for the deleted channel. |