fixed bug

This commit is contained in:
dize_dev
2023-10-30 21:50:47 +06:00
parent 13238d5139
commit 972b8e94d7
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -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]
+9
View File
@@ -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 + " <command>")
async def wrapper(message: Message):
await edit_message(message, "Такой команды не существует")