love-bot/bot/config.py

11 lines
346 B
Python

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()