加入群ID显示
This commit is contained in:
5
robot.py
5
robot.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user