给9-群百科答题游戏加上权限,防止浪费资源,定时也需要
This commit is contained in:
5
robot.py
5
robot.py
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user