Skip to content

Commit

Permalink
refactor settings
Browse files Browse the repository at this point in the history
  • Loading branch information
staciax committed Nov 2, 2024
1 parent 9a597d0 commit ded21ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lattebot/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
__all__ = ('settings',)


class Settings(BaseSettings):
class EnvConfig(BaseSettings):
model_config = SettingsConfigDict(
env_file='.env',
env_ignore_empty=True,
extra='ignore',
)


class Settings(EnvConfig):
PROJECT_NAME: str
APPLICATION_ID: int
SUPPORT_GUILD_ID: int
Expand Down

0 comments on commit ded21ae

Please sign in to comment.