diff --git a/divent/bot.py b/divent/bot.py index 91af96d..85baf9d 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -343,6 +343,5 @@ async def ical(entity_id: str): def __main__(): - quart_task = client.loop.create_task(app.run_task("0.0.0.0")) - quart_task.add_done_callback(lambda f: client.loop.stop()) - client.run(DISCORD_TOKEN) + client.loop.create_task(client.start(DISCORD_TOKEN)) + app.run("0.0.0.0", loop=client.loop)