Files
vk_lp/routes/not_command.py
2023-11-02 00:46:47 +07:00

12 lines
352 B
Python

from vkbottle.user import Message, UserLabeler
from config import edit_message, prefix_bot
from custom_rules.permission import Permission
bl = UserLabeler()
@bl.message(Permission(), text=prefix_bot + " <command>")
async def wrapper(message: Message, command):
await edit_message(message, "Такой команды не существует")