-
Notifications
You must be signed in to change notification settings - Fork 0
bot server
buildsbypat edited this page May 24, 2026
·
1 revision
The bot server is the Discord-only side of Rob.
- Connects to Discord.
- Connects to PostgreSQL.
- Processes
sends.discord_post_status='pending'. - Releases
queued_maintenancesends after maintenance is disabled. - Posts send notifications to the configured tracking channel.
- Refreshes public leaderboard messages from posted sends.
- Ignores imported legacy sends that were already marked
posted. - Handles
/register,/sendrequest,/leaderboard,/add, and/count set. - Runs the counting listener.
- Entry point:
python -m apps.bot.main - Background worker:
rob.services.send_queue_service.SendQueueService - PostgreSQL is the source of truth for queue state and maintenance state.
- The queue worker fetches only
pendingsends, so legacy imported rows already markedpostedare not reposted.
APP_ENVLOG_LEVELDATABASE_URLDISCORD_TOKENBOT_NAME
The bot does not host the Throne webhook HTTP server.