Bot Lifecycle
Start, stop, and restart the Discord bot from the control panel without restarting the container, the panel, or the database.
The Connection Page
Connection holds everything about the bot itself. It is under Settings in the desktop sidebar and is the first page opened by the phone's Settings tab.
- Bot — The bot statusThe bot's live connection state, shown on every page, the Discord account it signed in as, and the Application ID, with the lifecycle buttons.
- Bot token — The field for the Bot TokenThe bot's password for Discord, from the Developer Portal, or Saved once a token is stored.
- Add the bot to a server — The Invite link, with copy and open buttons, after the bot has signed in once.

Save or Replace the Bot Token
- Paste the token into Bot token, or select Replace token to enter a new one.
- Select Save token.
The panel encrypts the token, and no page or API ever shows it again. Saving a new token makes a running bot reconnect with it on its own, and Operators, Administrators, and the Owner can save one.
Start, Stop, and Restart
The lifecycle buttons sit in the Bot section of both the Connection and Overview pages. The Owner, Administrators, and Operators can use them, and Viewers don't see them.
- Start — Asks the bot to connect to Discord, and appears while the bot is set to stay stopped. It stays disabled until a Bot TokenThe bot's password for Discord, from the Developer Portal is saved, and a start without one returns "Add the Discord bot token before starting the bot."
- Stop — Disconnects the bot from Discord while the control panel, the workerBackground service that runs schedules and deliveries, and the database keep running.
- Restart — Reconnects with the current Bot TokenThe bot's password for Discord, from the Developer Portal and settings, and appears with Stop while the bot is set to run.
Each button sets the desired stateWhether you last told the bot to run or stop and increases the revisionA counter that makes the bot reload its latest settings. The bot checks for changes every BOT_CONTROL_POLL_INTERVAL_MS, about once a second by default, and the panel refreshes the status a few seconds later.
Bot Statuses
| Status | Meaning | What to do |
|---|---|---|
| Online | The bot is connected to Discord | Nothing |
| Starting | The bot is connecting, for up to 15 seconds, or the bot process hasn't picked up the request yet | Wait for Online or Stopped by an error |
| Stopped | The bot is set to stay stopped, or has never been started | Select Start when you're ready |
| Stopped by an error | The last connection attempt didn't succeed | Check the token on the Connection page, then select Restart |
| Not connected | No Bot TokenThe bot's password for Discord, from the Developer Portal is saved | Save a token on the Connection page |
| Not responding | The bot is set to run, but its process hasn't sent a heartbeatA service's regular I'm-alive note in the database for 90 seconds | Read docker compose logs app for the reason |
Below a failed status, the panel shows "Check the bot token on the Connection page, then restart the bot." A failed bot waits until the revisionA counter that makes the bot reload its latest settings changes before it tries again, so it doesn't retry on its own.
info
The log doesn't record why a connection failed, but a Bot can't sign in alert from Notifications includes Discord's reason. A wrong token, a privileged intentAn intent you must switch on in the Developer Portal first that is off in the Developer Portal, and a connection that takes longer than 15 seconds all lead to Stopped by an error.
Automatic Reconnects
A running bot reconnects whenever the revisionA counter that makes the bot reload its latest settings changes, so saved settings take effect on their own.
- Lifecycle buttons — Start, Stop, and Restart.
- Bot TokenThe bot's password for Discord, from the Developer Portal saves — Saving a token on the Connection page.
- Feature changes — Saving a feature's settings, or turning a feature on or off.
- Backup imports — Importing an export fileA JSON backup of your settings, secrets in plain text or an older
config.jsonfrom Backup.
Each reconnect closes the Discord connection and opens a new one. The bot forgets the members and messages it had seen, so a few features miss the first change for anything it hasn't seen again, as noted on their pages.
What Runs While the Bot Is Stopped
- Control panel and database — Keep running, so you can fix settings.
- Scheduled work — The workerBackground service that runs schedules and deliveries stops queuing scheduled posts, permission toggles, and RSS fetches, and the times that pass are skipped rather than replayed later.
- Queued deliveries — Posts and permission changes already in the queue wait without spending attempts. They resume after you start the bot again.
- RSS fetches already queued — Still run and mark new items as seen, but their posts fail, so those items aren't posted later.
- Public routes — The invite pageA public page that hands out short-lived Discord invites shows "Invites are paused right now. Try again later.", and mapped webhooksA URL that turns signed JSON into a Discord message answer with HTTP 503.
- Notifications — Keep going out, because they don't use the bot's Discord connection.
- Health check — Stays healthy, because the readiness checkThe /ready endpoint; it only asks if the database is up depends on the database, not the bot.