Skip to content

Commit

Permalink
Rename config to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonyte committed Nov 15, 2024
1 parent 5fe49ec commit 732755d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/bot/bot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from discord import Activity, Intents
from discord.ext.commands import Bot, when_mentioned_or

from bot.config import Settings
from bot.settings import Settings


class RussianRoulette(Bot):
Expand Down
2 changes: 1 addition & 1 deletion src/bot/modules/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)
from discord.ext.commands import Cog

from bot.config import Settings
from bot.settings import Settings

if TYPE_CHECKING:
from collections.abc import Sequence
Expand Down
2 changes: 1 addition & 1 deletion src/bot/config.py → src/bot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Settings(BaseSettings):
game: GameSettings = GameSettings()

model_config = SettingsConfigDict(
yaml_file="config_preview.yaml" if PREVIEW else "config.yaml",
yaml_file="settings_preview.yaml" if PREVIEW else "settings.yaml",
env_file=".env",
env_prefix="preview_" if PREVIEW else "",
extra="ignore",
Expand Down

0 comments on commit 732755d

Please sign in to comment.