From 02fdf3dfbf6c32825289932aab1dc7661d949b8b Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Sun, 7 Sep 2025 03:11:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E5=8A=A8=E6=80=9D?= =?UTF-8?q?=E8=80=83=E5=9B=9E=E5=A4=8D=E5=A5=87=E6=80=AA=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BF=AE=E6=94=B9napcat?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E9=81=97=E7=95=99=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/chat_loop/response_handler.py | 2 +- .../napcat_adapter_plugin/src/recv_handler/notice_handler.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat/chat_loop/response_handler.py b/src/chat/chat_loop/response_handler.py index f21a33afd..b115abe40 100644 --- a/src/chat/chat_loop/response_handler.py +++ b/src/chat/chat_loop/response_handler.py @@ -154,7 +154,7 @@ class ResponseHandler: if isinstance(data, list): data = "".join(map(str, data)) - reply_text += data + reply_text += data.get("data",{}).get("text","") # 如果是主动思考且内容为“沉默”,则不发送 if is_proactive_thinking and data.strip() == "沉默": diff --git a/src/plugins/built_in/napcat_adapter_plugin/src/recv_handler/notice_handler.py b/src/plugins/built_in/napcat_adapter_plugin/src/recv_handler/notice_handler.py index b756530cb..e3af0ea83 100644 --- a/src/plugins/built_in/napcat_adapter_plugin/src/recv_handler/notice_handler.py +++ b/src/plugins/built_in/napcat_adapter_plugin/src/recv_handler/notice_handler.py @@ -116,7 +116,7 @@ class NoticeHandler: sub_type = raw_message.get("sub_type") match sub_type: case NoticeType.Notify.poke: - if config_api.get_plugin_config(self.plugin_config, "features.poke_enabled", True) and await message_handler.check_allow_to_chat( + if config_api.get_plugin_config(self.plugin_config, "features.enable_poke", True) and await message_handler.check_allow_to_chat( user_id, group_id, False, False ): logger.debug("处理戳一戳消息") @@ -247,7 +247,7 @@ class NoticeHandler: else: # 如果配置为忽略不是针对自己的戳一戳,则直接返回None - if config_api.get_plugin_config(self.plugin_config, "features.non_self_poke_ignored", False): + if config_api.get_plugin_config(self.plugin_config, "features.ignore_non_self_poke", False): logger.debug("忽略不是针对自己的戳一戳消息") return None, None