From 7ac6a344cf1a0419016e3dcf588f769686306cd3 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 11 Feb 2022 18:34:22 +0700 Subject: [PATCH] fix restart --- program/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/updater.py b/program/updater.py index 2ef6360..7bc7917 100644 --- a/program/updater.py +++ b/program/updater.py @@ -77,6 +77,6 @@ async def update_bot(_, message: Message): async def restart_bot(_, message: Message): msg = await message.reply("❖ Restarting bot...") args = [sys.executable, "main.py"] + await msg.edit("✅ Bot restarted !\n\n• wait until 1-2 minutes after bot Rebooted.") execle(sys.executable, *args, environ) return -await msg.edit("✅ Bot restarted !\n\n• now bot is working again.")