Common questions when running OmegaBot.
- Who can use /admin?
- How do I add Hangman words?
- Who can manage FAQ / Notion wiki content?
- Why do users see "This interaction failed"?
- How do I back up the bot?
- Weather / GitHub / summaries don't work
- How do I see if the bot is healthy?
- Rate limits / cooldowns
Stats and health use the same rules as below. Timeout, kick, and ban use an extra rule when MODERATION_ALLOWED_ROLE_IDS is set.
-
If
MODERATION_ALLOWED_ROLE_IDSis set in.env:
Only users whose Discord user ID is inADMIN_USER_IDSor who have one of the listed role IDs can run/admin timeout,/admin kick, and/admin ban. No other server roles (e.g. Manage Server) can use those three subcommands. Stats and health still follow the normal rules below. -
Otherwise, users can run
/adminif either:
-
Allowlist in
.env– Their Discord user ID is inADMIN_USER_IDS(comma-separated).
Example:ADMIN_USER_IDS=123456789012345678,987654321098765432
Get your ID: Developer Mode → Right-click yourself → Copy ID. -
Server roles – They have one of:
- Discord Administrator, Manage Server, or Moderate Members, or
- A role added as a moderator via
/config moderator-role.
If neither applies, the command responds with a permission error. See Environment Setup – Admin / Moderation.
Set HANGMAN_ADMIN_ROLE_ID in .env to a Discord role ID. Users with that role can run:
/fun hangman words add word:<word> difficulty:<easy|medium|hard>/fun hangman words list [difficulty]
See Environment Setup.
These actions use the broader bot-admin rules:
/faq add/faq remove/notion status/notion templates/notion create-page/notion add
Access is granted by any of:
ADMIN_USER_IDS- Discord Administrator
- Discord Manage Server
BOT_ADMIN_ROLE_IDS
See Environment Setup – Bot Admin / Knowledge Base Admin and Notion Wiki Setup.
The bot didn’t respond within Discord’s ~3 second window, or the interaction expired. See Troubleshooting for causes and how to check logs and /admin health.
Run npm run db:backup (or scripts/backup-db.sh). Backups go to data/backups/ by default; the script keeps the last N backups (configurable via BACKUP_KEEP). You can run it while the bot is running. See Runbook – Database.
Those features are optional and require env vars. Check startup logs for [startup] optional features to see what’s enabled. Set the right keys in .env; see Environment Setup and .env.example.
- In Discord: Use
/admin health(requires admin access:ADMIN_USER_IDSin.envor server moderator role). Shows DB status, env summary, and interaction error counts. - HTTP: Set
METRICS_PORT=9090(or another port) in.envto enableGET /healthandGET /metricsfor load balancers or monitoring. See Runbook – Health.
Slots (3s), blackjack (5s), dice (2s), darts (2s), and hangman (10s) have per-user cooldowns. Stats and leaderboard views are not rate limited. See Command Reference – Rate limits.