动态auth完成。

This commit is contained in:
liuwei
2025-06-09 15:25:15 +08:00
parent f994f5cbbb
commit be62c05eb3
3 changed files with 13 additions and 21 deletions

View File

@@ -62,15 +62,9 @@ class GroupMemberChangePlugin(MessagePluginInterface):
def can_process(self, message: Dict[str, Any]) -> bool:
"""检查是否可以处理该消息"""
if not self.enable:
content = message.get("content")
if not content or "<sysmsg" not in content:
return False
content = str(message.get("content", "")).strip()
roomid = message.get("roomid", "")
if GroupBotManager.get_group_permission(roomid, self.feature) == PermissionStatus.DISABLED:
return False
return True
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]: