From ccb9e79cd7a659aca0fc6323129fd5b04c0a8992 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 16 May 2023 20:51:48 +0200 Subject: [PATCH] Fixed naming error --- plugins/shutdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")