2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 22:46:01 +00:00

rework startup

This commit is contained in:
Nick80835
2023-10-16 14:32:57 -04:00
parent dbd7a564c3
commit f588111344
7 changed files with 52 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ import psutil
from telethon import version
from telethon.tl.types import Channel, Chat
from ubot import ldr, micro_bot, startup_time
from ubot import ldr, startup_time
@ldr.add("eval", owner=True, hide_help=True)
@@ -165,9 +165,9 @@ async def shutdown(event):
await event.reply("Goodbye…")
if event.other_args[0]:
await micro_bot.stop_client(reason="Shutdown command issued.", exit_code=1)
await ldr.micro_bot.stop_client(reason="Shutdown command issued.", exit_code=1)
else:
await micro_bot.stop_client(reason="Shutdown command issued.")
await ldr.micro_bot.stop_client(reason="Shutdown command issued.")
@ldr.add("blacklist", sudo=True, hide_help=True)