From 45518cdccf3d12012e17c9bae4c4b1c59941bafd Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 23 Apr 2026 14:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=8D=E4=B8=80=E6=8B=8D?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=AF=AF=E5=88=A4=E8=A7=A6=E5=8F=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除基于子串的PAT判定,避免普通appmsg被误识别为拍一拍事件。 2. 事件识别收敛为sysmsg type=pat结构化解析优先,系统消息含拍了拍作为兜底。 3. 保持原有拍一拍功能可用,同时杜绝无拍一拍场景误触发。 --- plugins/fun_command_play/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/fun_command_play/main.py b/plugins/fun_command_play/main.py index 4e3a104..512c7b8 100644 --- a/plugins/fun_command_play/main.py +++ b/plugins/fun_command_play/main.py @@ -371,9 +371,9 @@ class FunCommandPlayPlugin(MessagePluginInterface): msg_type_value = getattr(msg_type, "value", msg_type) is_system = str(msg_type_value) in {str(MessageType.SYSTEM.value), str(MessageType.SYSTEM_NOTIFY.value), "10000", "10002"} - lowered_content = content.lower() - if "