加入群ID显示

This commit is contained in:
liuwei
2025-02-17 16:00:20 +08:00
parent f8c73659f2
commit b3633caa4e
3 changed files with 53 additions and 49 deletions

View File

@@ -158,7 +158,8 @@ class Robot(Job):
Feature.AI_CAPABILITY) == PermissionStatus.DISABLED:
self.sendTextMsg("群AI功能未开启", msg.roomid, msg.sender)
return True
rsp = self.chat.get_answer(q, (msg.roomid if msg.from_group() else msg.sender))
else:
rsp = self.chat.get_answer(q, (msg.roomid if msg.from_group() else msg.sender))
if rsp:
if msg.from_group():
@@ -441,7 +442,7 @@ class Robot(Job):
def message_summary_robot(self, sender: str = None):
try:
if self.gbm.get_group_permission(sender, Feature.DAILY_SUMMARY) == PermissionStatus.ENABLED:
if self.gbm.get_group_permission(sender, Feature.SUMMARY_CAPABILITY) == PermissionStatus.ENABLED:
self.LOG.info(f"群: {sender} 消息总结开始执行!")
content = get_messages(sender, self.allContacts)
summary = message_summary(content)