mirror of
https://github.com/koloideal/DutyLog.git
synced 2026-06-10 18:35:29 +03:00
initial
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from dataclasses import dataclass
|
||||
from os import getenv
|
||||
|
||||
|
||||
@dataclass
|
||||
class Config:
|
||||
bot_token: str
|
||||
database_url: str
|
||||
|
||||
|
||||
def load_config() -> Config:
|
||||
return Config(
|
||||
bot_token=getenv("BOT_TOKEN", ""),
|
||||
database_url=getenv("DATABASE_URL", "sqlite+aiosqlite:///./db.sqlite3"),
|
||||
)
|
||||
Reference in New Issue
Block a user