From 87943fdb1f2266655851c2e0d853244bce100540 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 16 May 2025 10:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=B6=88=E6=81=AF=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=89=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/group_member_change/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/group_member_change/main.py b/plugins/group_member_change/main.py index 2d2a955..f333fd0 100644 --- a/plugins/group_member_change/main.py +++ b/plugins/group_member_change/main.py @@ -58,6 +58,9 @@ class GroupMemberChangePlugin(MessagePluginInterface): def can_process(self, message: Dict[str, Any]) -> bool: """检查是否可以处理该消息""" + content = message.get("content") + if not content or " Tuple[bool, Optional[str]]: @@ -67,8 +70,6 @@ class GroupMemberChangePlugin(MessagePluginInterface): content = content.clean_content content = str(content).strip() self.LOG.debug(f"插件执行: {self.name}:{content}") - if not content or "