No description
The base model basically just adds typing to peewee (lmao) and also handles the date_created, date_updated fields all methods, except for raw SQL. This should make it a little easier to write a tiny async layer on top of it all. Signed-off-by: Max R. Carrara <max@aequito.sh> |
||
|---|---|---|
| .forgejo/workflows | ||
| src/bot | ||
| tests | ||
| .gitignore | ||
| .python-version | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
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. |