输出消息,测试撤回

This commit is contained in:
liuwei
2025-04-30 17:03:20 +08:00
parent 483b065f8f
commit 4321b2a1e5

View File

@@ -62,8 +62,10 @@ class GroupMemberChangePlugin(MessagePluginInterface):
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
"""处理接收到的消息"""
content = str(message.get("content", "")).strip()
content = message.get("content")
if hasattr(content, "clean_content"):
content = content.clean_content
content = str(content).strip()
self.LOG.info(f"插件执行: {self.name}{content}")
if not content or "<sysmsg" not in content:
return False, "非系统消息"