This commit is contained in:
Sakimori 2021-02-11 18:19:58 -05:00
parent f845bb431a
commit bc7f178462

View file

@ -1164,6 +1164,7 @@ active_tournaments = []
active_leagues = []
active_standings = {}
setupmessages = {}
watching = False
thread1 = threading.Thread(target=main_controller.update_loop)
thread1.start()
@ -1195,8 +1196,10 @@ def config():
async def on_ready():
db.initialcheck()
print(f"logged in as {client.user} with token {config()['token']} to {len(client.guilds)} servers")
watch_task = asyncio.create_task(game_watcher())
await watch_task
if not watching:
watching = True
watch_task = asyncio.create_task(game_watcher())
await watch_task
@client.event