调整异常扣分记录,如果是异常的数据,则不扣分

This commit is contained in:
liuwei
2025-04-17 14:42:47 +08:00
parent 05eb182e6a
commit 9579d3208f
10 changed files with 53 additions and 28 deletions

View File

@@ -95,11 +95,11 @@ class MessageSummaryPlugin(MessagePluginInterface):
# 直接发送消息
if wcf:
wcf.send_text("只支持群聊消息总结", message.get("sender"))
return True, None
return False, None
# 权限判断
gbm: GroupBotManager = message.get("gbm")
if gbm and gbm.get_group_permission(group_id, Feature.SUMMARY_CAPABILITY) == PermissionStatus.DISABLED:
return True, None
return False, None
# 从消息历史中获取群聊记录
all_contacts: dict = message.get("all_contacts")