love-bot/bot/config.py

11 lines
346 B
Python
Raw Normal View History

2025-04-28 14:52:32 +02:00
from pydantic_settings import BaseSettings, SettingsConfigDict
from pydantic import SecretStr
class Settings(BaseSettings):
bot_token: SecretStr
secret_password: SecretStr
database_name: str = "data/love_bot.db"
model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8', extra='ignore')
settings = Settings()