Skip to content

Commit

Permalink
load config first of all
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 8, 2025
1 parent 7bd41a7 commit 0f359ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 5 additions & 3 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
from pyrogram.handlers import CallbackQueryHandler
from pyrogram.types import BotCommand

from .core.config_manager import Config

# Initialize Configurations
Config.load()

from . import LOGGER, bot_loop
from .core.aeon_client import TgClient
from .core.config_manager import Config
from .core.handlers import add_handlers
from .core.startup import (
load_configurations,
Expand Down Expand Up @@ -35,8 +39,6 @@
restart_notification,
)

# Initialize Configurations
Config.load()

# Commands and Descriptions
COMMANDS = {
Expand Down
7 changes: 1 addition & 6 deletions bot/helper/telegram_helper/bot_commands.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
from bot.core.config_manager import Config


def get_cmd_suffix():
return Config.CMD_SUFFIX


i = get_cmd_suffix()
i = Config.CMD_SUFFIX


class _BotCommands:
Expand Down

0 comments on commit 0f359ad

Please sign in to comment.