diff --git a/src/client.py b/src/client.py index 6b230e0..08f73c9 100644 --- a/src/client.py +++ b/src/client.py @@ -5,7 +5,6 @@ from Constants import CYAN, DELETED_MESSAGES_CHANNEL_ID, GENERAL_CHAT_ID, BOSS_BOT_CHANNEL_ID from src import GPT -from src import commands from src.helper_functions import get_general_channel from src.Read import json_read from src.Tasks import start_tasks @@ -26,6 +25,7 @@ def __init__(self): async def on_ready(self): await self.wait_until_ready() if not self.synced: + import src.commands as commands tree = commands.get_tree_instance() await tree.sync() start_tasks() diff --git a/src/commands.py b/src/commands.py index 500b75f..6eae156 100644 --- a/src/commands.py +++ b/src/commands.py @@ -9,7 +9,8 @@ from Constants import BOT_ADMIN_SERVER_ID, CYAN, KYTPBS_TAG from src.Read import write_json import src.voice_commands as vc_cmds -from src import GPT, Youtube, client +import src.client as client +from src import GPT, Youtube from src.birthday_helpers import get_user_and_date_from_string birthdays = client.get_birthdays()