给9-群百科答题游戏加上权限,防止浪费资源,定时也需要

This commit is contained in:
liuwei
2025-02-28 17:15:37 +08:00
parent 43904ea33c
commit 426a2451ee

View File

@@ -560,8 +560,9 @@ class Robot(Job):
try:
group_ids = get_group_ids()
for gid in group_ids:
rep = run_random_task_assignment(group_id=gid)
self.sendTextMsg(rep, gid)
if self.gbm.get_group_permission(gid, Feature.TASK_GAME) == PermissionStatus.ENABLED:
rep = run_random_task_assignment(group_id=gid)
self.sendTextMsg(rep, gid)
except Exception as e:
self.LOG.error(f"message_summary_robot error{e}")