diff --git a/wechatter/message/__init__.py b/wechatter/message/__init__.py index 7ecea2a..d57cd4b 100644 --- a/wechatter/message/__init__.py +++ b/wechatter/message/__init__.py @@ -1,4 +1,4 @@ -from .message_parser import MessageHandler +from .message_handler import MessageHandler __all__ = [ "MessageHandler", diff --git a/wechatter/message/message_parser.py b/wechatter/message/message_handler.py similarity index 96% rename from wechatter/message/message_parser.py rename to wechatter/message/message_handler.py index f6a1725..be0f342 100644 --- a/wechatter/message/message_parser.py +++ b/wechatter/message/message_handler.py @@ -53,6 +53,10 @@ def handle_message(self, message_obj: Message): message=message_obj.pure_content, q_response=quoted_response.response, ) + else: + logger.warning( + f"未找到可引用的命令消息处理函数: {quoted_response.command}" + ) return # 非命令消息