haisai / config_reader.py
haisenx's picture
Upload 11 files
7f77117 verified
raw
history blame contribute delete
265 Bytes
from pydantic_settings import BaseSettings, SettingsConfigDict
from pydantic import SecretStr
class Settings(BaseSettings):
bot_token: SecretStr
model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8')
config = Settings()