DiscordBot / config.py
QwertOs's picture
2
2fd3032 verified
Raw History Blame Contribute Delete
506 Bytes
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()