From 7e862253e28cd426dd5cda934ad9541c9038a563 Mon Sep 17 00:00:00 2001 From: yzhh <2596322644@qq.com> Date: Sun, 24 Oct 2021 19:01:59 +0800 Subject: [PATCH] Update message.py --- core/parser/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parser/message.py b/core/parser/message.py index d5e85790..66d7b2ff 100644 --- a/core/parser/message.py +++ b/core/parser/message.py @@ -121,7 +121,7 @@ async def parser(msg: MessageSession): if not await msg.checkPermission(): await msg.sendMessage(f'{command_first_word}命令仅能被该群组的管理员所使用,请联系管理员执行此命令。') continue - if module.match_list is None: + if module.match_list.set is None: await msg.sendMessage(f'发生错误:{command_first_word}未绑定任何命令,,请联系开发者处理。' f'\n错误汇报地址:https://github.com/Teahouse-Studios/bot/issues/new?assignees=OasisAkari&labels=bug&template=5678.md&title=。') continue