Skip to content

Commit

Permalink
fix huge bug that would crash the app on startup
Browse files Browse the repository at this point in the history
Why didn't my linter warn me in the first place?? I can't believe I made such a stupid mistake
  • Loading branch information
kytpbs committed Oct 18, 2023
1 parent 8e60e6a commit b1cd9c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion src/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b1cd9c1

Please sign in to comment.