Spaces:
Paused
Paused
File size: 506 Bytes
2fd3032 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from pydantic_settings import BaseSettings
from pydantic import Field
class Settings(BaseSettings):
BOT_TOKEN: str
OWNER_ID: int = 0
DB_HOST: str = "db"
DB_PORT: int = 5432
DB_USER: str = "discord_bot"
DB_PASS: str = "change_me_strong_password"
DB_NAME: str = "fan_bot"
REDIS_HOST: str = "redis"
REDIS_PORT: int = 6379
LOG_LEVEL: str = "INFO"
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = Settings() |