From 5eaaaacbe9c581b7df49b68ecd5e30d7723c332e Mon Sep 17 00:00:00 2001 From: UnCLAS-Prommer Date: Sun, 7 Sep 2025 01:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/hello_world_plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hello_world_plugin/plugin.py b/plugins/hello_world_plugin/plugin.py index c4e6d72c..7284d9f5 100644 --- a/plugins/hello_world_plugin/plugin.py +++ b/plugins/hello_world_plugin/plugin.py @@ -136,12 +136,12 @@ class PrintMessage(BaseEventHandler): handler_name = "print_message_handler" handler_description = "打印接收到的消息" - async def execute(self, message: MaiMessages | None) -> Tuple[bool, bool, str | None, None]: + async def execute(self, message: MaiMessages | None) -> Tuple[bool, bool, str | None, None, None]: """执行打印消息事件处理""" # 打印接收到的消息 if self.get_config("print_message.enabled", False): print(f"接收到消息: {message.raw_message if message else '无效消息'}") - return True, True, "消息已打印", None + return True, True, "消息已打印", None, None # ===== 插件注册 =====