Fixed naming error
This commit is contained in:
parent
69d63ca1ce
commit
ccb9e79cd7
@ -14,7 +14,7 @@ logger = logging.getLogger(__name__)
|
|||||||
@Client.on_message(
|
@Client.on_message(
|
||||||
~filters.scheduled & filters.command(["kill", "die", "shutdown"], prefixes="/") # type: ignore
|
~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"):
|
if msg.from_user.id == await config_get("owner_id"):
|
||||||
await msg.reply_text(f"Shutting down bot with pid **{getpid()}**")
|
await msg.reply_text(f"Shutting down bot with pid **{getpid()}**")
|
||||||
logger.info(f"Shutting down as requested by {msg.from_user.id}")
|
logger.info(f"Shutting down as requested by {msg.from_user.id}")
|
||||||
|
Reference in New Issue
Block a user