No description
Find a file
Max R. Carrara e71558959c
All checks were successful
/ test (push) Successful in 18s
bot: cogs: add Debug cog and load extensions when bot is ready
As the name implies, the Debug cog is solely there to debug stuff. In
the future the commands in that cog should only respond to whoever has
the provided `BOT_OWNER_ID` (me).

Additionally, extensions for discord.py are now loaded dynamically in
`main.py`.

Signed-off-by: Max R. Carrara <max@aequito.sh>
2025-03-14 00:14:08 +01:00
.forgejo/workflows workflows: add workflow for running tests 2025-03-06 02:37:26 +01:00
src/bot bot: cogs: add Debug cog and load extensions when bot is ready 2025-03-14 00:14:08 +01:00
tests tests: add basic test 2025-03-06 01:32:47 +01:00
.gitignore bot: env: map known env vars to object 2025-03-10 23:31:41 +01:00
.python-version setup basic project structure 2025-03-06 01:19:10 +01:00
LICENSE Initial commit 2025-03-06 00:22:04 +01:00
pyproject.toml pyproject: add discord.py as dependency 2025-03-10 23:56:08 +01:00
README.md readme: document known env vars 2025-03-10 23:34:00 +01:00
uv.lock pyproject: add discord.py as dependency 2025-03-10 23:56:08 +01:00

stammtisch-bot

Environment Variables

Name Options Default Description
BOT_LOG_LEVEL NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL INFO The bot's log level. Corresponds to Python log levels
BOT_MEMORY_DB 0 or 1 0 When enabled, the database will reside in memory when the bot is started. This is useful for a debugging or testing instance.
BOT_OWNER_ID int or None None The ID of the bot's owner. Should usually the person running the bot.
BOT_PREFIX any string without whitespace ! The prefix the bot will use for commands.
BOT_TOKEN_FILE any valid filepath ./token.txt A file containing the bot token. Will be read on startup.