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