Add cli parsing logic and logging to rotom_discord_bot

This commit is contained in:
2025-01-29 20:03:19 +00:00
parent 42108ea8e7
commit d2de03fde1
8 changed files with 616 additions and 13 deletions

20
.env.example Normal file
View File

@@ -0,0 +1,20 @@
# Logging (env_logger) -----------------------------------------------------------------------------------
RUST_LOG="rotom_discord_bot=debug"
# Discord ------------------------------------------------------------------------------------------------
BOT_TOKEN="my_bot_token"
# Database -----------------------------------------------------------------------------------------------
# DATABASE_DIALECT="mysql"
# DATABASE_URL="mysql://username:password@host/database"
# DATABASE_DIALECT="postgres"
# DATABASE_URL="postgres://username:password@host/database"
DATABASE_DIALECT="sqlite"
DATABASE_URL="/path/to/sqlite/database.db"
# --------------------------------------------------------------------------------------------------------