给9-群百科答题游戏加上权限,防止浪费资源,定时也需要
This commit is contained in:
1
robot.py
1
robot.py
@@ -560,6 +560,7 @@ class Robot(Job):
|
|||||||
try:
|
try:
|
||||||
group_ids = get_group_ids()
|
group_ids = get_group_ids()
|
||||||
for gid in group_ids:
|
for gid in group_ids:
|
||||||
|
if self.gbm.get_group_permission(gid, Feature.TASK_GAME) == PermissionStatus.ENABLED:
|
||||||
rep = run_random_task_assignment(group_id=gid)
|
rep = run_random_task_assignment(group_id=gid)
|
||||||
self.sendTextMsg(rep, gid)
|
self.sendTextMsg(rep, gid)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user