This commit is contained in:
levina 2022-02-12 02:58:29 +07:00 committed by GitHub
parent 17a7d46c14
commit 35a1d8ce09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ async def update_bot(_, message: Message):
msg = await message.reply("❖ Checking updates...")
update_avail = updater()
if update_avail:
await msg.edit("✅ Update finished !\n\n• Bot restarting, back active again in 1-2 minutes.")
await msg.edit("✅ Update finished !\n\n• Bot restarting, back active again in 1 minutes.")
system("git pull -f && pip3 install --no-cache-dir -r requirements.txt")
execle(sys.executable, sys.executable, "main.py", environ)
return
@ -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.")
await msg.edit("✅ Bot restarted !\n\n• wait until 1 minutes after bot Rebooted.")
execle(sys.executable, *args, environ)
return