输出消息,测试撤回
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]]:
|
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
||||||
"""处理接收到的消息"""
|
"""处理接收到的消息"""
|
||||||
|
content = message.get("content")
|
||||||
content = str(message.get("content", "")).strip()
|
if hasattr(content, "clean_content"):
|
||||||
|
content = content.clean_content
|
||||||
|
content = str(content).strip()
|
||||||
self.LOG.info(f"插件执行: {self.name}:{content}")
|
self.LOG.info(f"插件执行: {self.name}:{content}")
|
||||||
if not content or "<sysmsg" not in content:
|
if not content or "<sysmsg" not in content:
|
||||||
return False, "非系统消息"
|
return False, "非系统消息"
|
||||||
|
|||||||
Reference in New Issue
Block a user