diff --git a/plugins/shutdown.py b/plugins/shutdown.py index a80e5a1..c952853 100644 --- a/plugins/shutdown.py +++ b/plugins/shutdown.py @@ -14,7 +14,7 @@ logger = logging.getLogger(__name__) @Client.on_message( ~filters.scheduled & filters.command(["kill", "die", "shutdown"], prefixes="/") # type: ignore ) -async def kill(app: Client, msg: Message): +async def command_shutdown(app: Client, msg: Message): if msg.from_user.id == await config_get("owner_id"): await msg.reply_text(f"Shutting down bot with pid **{getpid()}**") logger.info(f"Shutting down as requested by {msg.from_user.id}")