feat(status): rotate an editable list of bot statuses
The presence line was hard-coded, so advertising a different message meant editing the source and restarting the bot. Statuses now live in the database and are managed from Discord with /status — add, list, remove, pause and the rotation interval, which applies without a restart. An empty list falls back to a neutral "see the commands with /help" line, and the first status added shows up right away instead of waiting a full turn.
This commit is contained in:
8 files changed
+755
-2
No files matched your search
@@ -50,6 +50,9 @@ CATEGORY_VOICE_ID=
|
||||
# Délai avant qu'un salon généré devenu vide soit supprimé, en ms (0 = immédiat)
|
||||
VOICE_EMPTY_GRACE_MS=5000
|
||||
|
||||
# --- Statuts du bot (M15) -----------------------------------------------------
|
||||
# Rythme par défaut de la rotation, en secondes (modifiable à chaud par /status interval)
|
||||
BOT_STATUS_INTERVAL_SECONDS=60
|
||||
|
||||
# --- Gitea (M5-T01) ----------------------------------------------------------
|
||||
GITEA_URL=https://gitea.nocode-var.tech
|
||||
|
||||
Reference in new issue
Block a user