If your Discord bot goes offline mid-campaign, a backup bot takes over and continues from the very next member, so nobody is skipped or messaged twice. If no backup is available, the campaign pauses and the remaining messages wait. Nothing is lost, and the campaign resumes when a bot is back.
Why does a Discord bot go offline?
A bot connects to Discord through a long-running connection. Discord's gateway documentation says an app that does not receive a heartbeat acknowledgement should close the connection and reconnect, and that an app should try to resume where it can. Connections therefore drop and recover as part of normal operation.
A bot can also be offline for reasons on your side: the token was reset in the Developer Portal, the bot was removed from the server, or a permission changed. The article on bot token safety explains what happens to a bot when its token is reset.
What does a backup bot do?
A backup bot, also called a standby, waits while the main bot is online. It takes over only if the main bot goes offline. A campaign has one main bot plus up to two backups, on Lunar Weekly and Lunar Daily alike.
The handover has these properties:
- It continues from the very next member, so nobody is skipped or messaged twice.
- Every handover is logged on the campaign.
- Backups never send at the same time as the main bot.
Because a backup never sends alongside the main bot, a backup never makes a campaign faster. It makes sure the campaign finishes. If speed is the goal, add more sending bots instead, as the article on running several bots in one server explains.
What happens if there is no backup?
If the main bot drops and no standby is available, the campaign pauses. Messages wait in the queue rather than being lost. When a bot is back, the campaign resumes from where it stopped.
For a campaign with a deadline, such as a discount that ends on a set day, a pause matters. That is the reason to connect at least one backup before a time-sensitive send.
How should I prepare backup bots?
- Create each backup in the Developer Portal exactly as you created the main bot, with both intents switched on. The guide to creating a bot has the steps.
- Add each one on the Bots page and invite it to the same server.
- Press Check now and make sure each shows Online.
- Give the backups the same name and picture as the main bot, so members do not notice a switch.
- Choose them as backups on the campaign when you build it.
BotLunar's Bots page shows two separate facts per bot: whether Discord accepts the token, which decides whether a campaign can send, and whether the bot is listening, which decides whether buttons work and replies reach your inbox.
What does Discord's rate limiting have to do with it?
A bot that Discord is pushing back on is not offline. When Discord answers with a 429 and a retry value, BotLunar waits exactly as long as asked and carries on. Discord's rate limit documentation says an app should rely on the Retry-After header to decide when to retry. That is slowing down, not failover, and the other bots keep sending.
What do backups not protect against?
Backups protect against a bot going offline. They do not change who may be messaged. The frequency cap and unsubscribes still apply on every bot, and a member who unsubscribed is never messaged by a backup either. The backup bots page lists what carries over.
Frequently asked questions
Will members get the same message twice if the main bot drops?
No. The backup continues from the very next member, so nobody is skipped or messaged twice.
How many backup bots can one campaign have?
One main bot plus up to two backups, on both Lunar Weekly and Lunar Daily.
Do backup bots make a campaign finish sooner?
No. They never send at the same time as the main bot. Extra sending bots are what make a campaign finish sooner.
What if every bot is offline?
The campaign pauses and messages wait rather than being lost. It carries on when a bot is back.
Next step
Read the backup bots page, follow the setup guide to connect more than one bot, or start the 7 day free trial on Lunar Weekly from the pricing page.