From ce2d7684bc7002c0ac3e9e533cab399432de6e16 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 22 Dec 2022 10:11:48 +0000 Subject: [PATCH] Run ingest task first --- monolith.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monolith.py b/monolith.py index 3585e8f..d19c2e7 100644 --- a/monolith.py +++ b/monolith.py @@ -21,15 +21,15 @@ if not token: async def main(loop): + ingest = Ingest() + loop.create_task(ingest.run()) + client = DiscordClient() loop.create_task(client.start(token)) chan = Chan4() loop.create_task(chan.run()) - ingest = Ingest() - loop.create_task(ingest.run()) - loop = asyncio.get_event_loop() loop.create_task(main(loop))