From d7282988e25dad18690d712cd254ede18fe4d2b4 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Fri, 24 Feb 2023 23:03:00 +0700 Subject: [PATCH] Update __main__.py --- misskaty/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misskaty/__main__.py b/misskaty/__main__.py index 3c808dd9..cb2eb0d7 100644 --- a/misskaty/__main__.py +++ b/misskaty/__main__.py @@ -72,8 +72,7 @@ async def start_bot(): ) except Exception as e: LOGGER.error(str(e)) - if bool(scheduler.get_jobs()): - scheduler.start() + scheduler.start() if os.path.exists("restart.pickle"): with open('restart.pickle', 'rb') as status: chat_id, message_id = pickle.load(status)