Scheduled Posts
Post messages on a calendar you define, in the time zoneThe zone a schedule's times are read in; UTC by default you choose, with optional reactions and dates to skip.
Why Use This Feature?
- Publishes recurring posts, such as a weekly check-in, without anyone online to send them.
- Reads the schedule in your chosen time zoneThe zone a schedule's times are read in; UTC by default, so posts follow local time through daylight saving changes.
- Skips the dates you list, so holiday posts don't go out by mistake.
- Keeps queued posts in the database, so a restart doesn't lose them.
How It Works
- Queuing — At each time the calendar selectorThe calendar fields that say when a schedule runs matches, the workerBackground service that runs schedules and deliveries queues one durable jobQueued task kept in the database until it's done for the rule, with the message text fixed at that moment.
- Posting — The workerBackground service that runs schedules and deliveries posts the message, then adds the reactions in order.
- Mentions — Mentions in the message never notify anyone.
- Downtime — After the workerBackground service that runs schedules and deliveries has been down, it catches up on the replay windowMissed runs from the last 24 hours get caught up of the last 24 hours, so several missed posts can arrive at once.
- Stopped bot — While the bot is stopped, scheduled times pass without queuing anything, and they aren't replayed later.
Each scheduled time is queued at most once, because every job has a deduplication keyStops the same job from being queued twice built from the server, the rule, and the time.
Schedules
The Posting schedule is a calendar selectorThe calendar fields that say when a schedule runs. Every list you set has to match, and a list you leave out matches every value.
| Field | Values | When left out |
|---|---|---|
Months (months) | 1 to 12 | Every month |
Days of the month (dates) | 1 to 31 | Every date |
Days of the week (days-of-week) | 0 to 6, with Sunday as 0 | Every day |
Hours (hours) | 0 to 23 | Every hour |
Minutes (minutes) | 0 to 59 | Every minute |
Seconds (seconds) | 0 to 59 | Second 0 |
Time zoneThe zone a schedule's times are read in; UTC by default (time-zone) | An IANA name, such as America/New_York | UTC |
- Dates and weekdays together — Both have to match, so
dates: [1]withdays-of-week: [1]runs only when the 1st falls on a Monday. - Short months — A date of 31 never matches in a month with fewer days.
- Daylight saving — A local time that happens twice runs twice, and a local time that is skipped doesn't run.
- Container time zoneThe zone a schedule's times are read in; UTC by default — The container's
TZsetting doesn't affect schedules.
Dates to skip takes up to 366 skip datesDates a schedule sits out as YYYY-MM-DD, read in the rule's time zoneThe zone a schedule's times are read in; UTC by default.
Requirements
- No extra intent — The workerBackground service that runs schedules and deliveries posts through Discord's REST API, so this feature adds no Gateway intentA kind of Discord event the bot asks to hear about.
- Channel permissions — The bot needs View Channel and Send Messages, plus Add Reactions and Read Message History for reactions.
- Running bot — Nothing is queued while the bot is stopped.
Settings
Each rule has these fields.
| Field | Description |
|---|---|
Name (name) | The rule's name, up to 100 characters. |
Channel (channel) | The channel to post in. |
Message → Text (payload.content) | Up to 2,000 characters. |
Message → Footer → Footer text (payload.footer.text) | Up to 1,000 characters, posted as a second line of text. |
Reactions (reactions) | Optional list of up to 20 emoji to add after posting. |
Posting schedule (send-on) | The calendar selectorThe calendar fields that say when a schedule runs, required. |
Dates to skip (skip-dates) | Optional skip datesDates a schedule sits out. |
A post needs content, a footer, or both. For a custom emoji reaction, it is recommended to use Discord's name:id form, because the bot passes the text to Discord as written.
Example
[
{
"name": "Weekly check-in",
"channel": { "channel-id": "123456789012345678" },
"payload": { "content": "Happy Monday! Share what you're working on this week.", "footer": { "text": "Weekly check-in · %YEAR%" } },
"reactions": ["👋"],
"send-on": { "days-of-week": [1], "hours": [9], "minutes": [30], "time-zone": "America/New_York" },
"skip-dates": ["2026-12-28", "2027-01-04"]
}
]
Message Variables
| Variable | Becomes |
|---|---|
%YEAR% | The year at the scheduled time, in the rule's time zoneThe zone a schedule's times are read in; UTC by default |
Limits
- Rules — Up to 100.
- Post length — The content and footer together are cut at 2,000 characters, so a long content can push out the footer.
- Reactions — Up to 20.
Troubleshooting
- A post's reactions are missing — A reaction failed. The worker keeps the message it already posted, and each retry, 30 seconds apart, adds the reactions to that same message, up to
JOB_ATTEMPT_LIMITtimes, 5 by default. - A post didn't appear — The bot was stopped at that time, or every delivery try failed. The workerBackground service that runs schedules and deliveries log then shows
job_failedwith the reason, such as "Discord delivery is paused while the bot is stopped." or "Missing Permissions". - Knowing when a post gives up — The last failed try can send a Job gave up alert, as described in Notifications.
- Old posts arrived together — The workerBackground service that runs schedules and deliveries caught up on missed times after it had been down.
- Posts run at the wrong hour — Each rule uses UTC unless you set its Time zoneThe zone a schedule's times are read in; UTC by default.
Changes from the legacy bot
In the legacy botThe old v3.4.3 bot that ran from a config.json file, a schedule without seconds ran every second, and a rule without a time zoneThe zone a schedule's times are read in; UTC by default used the host's local time. The rewrite treats a missing seconds as second 0, uses UTC by default, and posts plain text with the footer on a second line.