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:
BlackAngelTV committed 2026-09-15 16:12:50 +02:00
1 parent ef8f09da10
commit c785e9abb7
8 files changed
+755 -2

No files matched your search

+4
View File
@@ -58,6 +58,10 @@ export const env = Object.freeze({
emptyGraceMs: readDuration('VOICE_EMPTY_GRACE_MS', 5_000),
},
bot: {
statusIntervalSeconds: readDuration('BOT_STATUS_INTERVAL_SECONDS', 60),
},
gitea: {
url: read('GITEA_URL').replace(/\/+$/, ''),
token: read('GITEA_TOKEN'),