added poll interval env

This commit is contained in:
2025-12-10 02:24:29 +01:00
parent a40d307956
commit d12f2e5a79
2 changed files with 5 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ class Settings(BaseSettings):
discord_app_id: str = Field(..., env="DISCORD_APP_ID")
poll_interval: int = Field(15, env="POLL_INTERVAL") # default 15 seconds
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
settings = Settings()