From 0b0bc44b2773796c106160f0fba3717e084a52fe Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 10 Nov 2021 22:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Remove=20asyncio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index 0dc6147..4de725a 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -1,6 +1,5 @@ """ PagerMaid initialization. """ -import asyncio from concurrent.futures import CancelledError # Analytics @@ -283,7 +282,7 @@ async def save_id(): with bot: - asyncio.ensure_future(save_id()) + bot.loop.run_until_complete(save_id()) def before_send(event, hint):