系统更新指令
This commit is contained in:
@@ -65,6 +65,8 @@ class GroupMemberChangePlugin(MessagePluginInterface):
|
||||
|
||||
content = str(message.get("content", "")).strip()
|
||||
self.LOG.info(f"插件执行: {self.name}:{content}")
|
||||
if not content or "<sysmsg" not in content:
|
||||
return False, "非系统消息"
|
||||
sender = message.get("sender")
|
||||
roomid = message.get("roomid", "")
|
||||
gbm: GroupBotManager = message.get("gbm")
|
||||
@@ -75,8 +77,8 @@ class GroupMemberChangePlugin(MessagePluginInterface):
|
||||
return False, "没有权限"
|
||||
|
||||
xml_content = str(content).strip().replace("\n", "").replace("\t", "")
|
||||
root = ET.fromstring(xml_content)
|
||||
|
||||
root = ET.fromstring(xml_content)
|
||||
if root.tag != "sysmsg":
|
||||
return False, "非本次需要处理消息"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user