From a4d388acf8e914c1d908a67cec5536fdddee66c7 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 22 Aug 2022 21:33:34 +0000 Subject: [PATCH] Fix loop --- divent/{__init__.py => __main__.py} | 0 divent/bot.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename divent/{__init__.py => __main__.py} (100%) diff --git a/divent/__init__.py b/divent/__main__.py similarity index 100% rename from divent/__init__.py rename to divent/__main__.py diff --git a/divent/bot.py b/divent/bot.py index 8daf98f..a203eec 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -217,5 +217,5 @@ async def ical(guild_id: str): def run(): quart_task = client.loop.create_task(app.run_task()) - quart_task.add_done_callback(lambda f: quart_task.get_loop().stop()) + quart_task.add_done_callback(lambda f: client.loop.stop()) client.run(DISCORD_TOKEN)