Run ingest task first

This commit is contained in:
Mark Veidemanis 2022-12-22 10:11:48 +00:00
parent 508b00e471
commit ce2d7684bc
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 3 deletions

View File

@ -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))