No description
Find a file
Max R. Carrara 80918f7a42 bot: main: register event handlers inside separate function
Makes the overall program flow nicer.

Signed-off-by: Max R. Carrara <max@aequito.sh>
2025-03-11 22:33:52 +01:00
.forgejo/workflows workflows: add workflow for running tests 2025-03-06 02:37:26 +01:00
src/bot bot: main: register event handlers inside separate function 2025-03-11 22:33:52 +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.