added poll interval env
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user