输出消息,测试撤回
This commit is contained in:
@@ -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, "非系统消息"
|
||||
|
||||
Reference in New Issue
Block a user