diff --git a/routes/__init__.py b/routes/__init__.py index 955e4dc..6807276 100644 --- a/routes/__init__.py +++ b/routes/__init__.py @@ -1,3 +1,3 @@ -from . import game_handler, deletedmsg, info_bot, rewards +from . import game_handler, deletedmsg, info_bot, rewards, not_command -labelers = [game_handler.bl, deletedmsg.bl, info_bot.bl, rewards.bl] +labelers = [game_handler.bl, deletedmsg.bl, info_bot.bl, rewards.bl, not_command.bl] diff --git a/routes/not_command.py b/routes/not_command.py new file mode 100644 index 0000000..d5dc59d --- /dev/null +++ b/routes/not_command.py @@ -0,0 +1,9 @@ +from custom_rules.permission import Permission +from vkbottle.user import Message +from config import bl, edit_message, prefix_bot + + +@bl.message(Permission(), text=prefix_bot + " ") +async def wrapper(message: Message): + await edit_message(message, "Такой команды не существует") +