调整聊天排行榜功能
This commit is contained in:
3
robot.py
3
robot.py
@@ -685,9 +685,8 @@ class Robot:
|
||||
if not receivers:
|
||||
return
|
||||
|
||||
feature = getattr(Feature, "DAILY_SUMMARY", None)
|
||||
for r in receivers:
|
||||
if self.gbm.get_group_permission(r, feature) == PermissionStatus.ENABLED:
|
||||
if self.gbm.get_group_permission(r, Feature.DAILY_SUMMARY) == PermissionStatus.ENABLED:
|
||||
output = await self.message_storage.generate_and_send_ranking(r, self.allContacts)
|
||||
await self.ipad_bot.send_text_message(r, output)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user