From 426a2451eeb044e8724542dc9926383b23c1c459 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 28 Feb 2025 17:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=999-=E7=BE=A4=E7=99=BE=E7=A7=91=E7=AD=94?= =?UTF-8?q?=E9=A2=98=E6=B8=B8=E6=88=8F=E5=8A=A0=E4=B8=8A=E6=9D=83=E9=99=90?= =?UTF-8?q?=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=B5=AA=E8=B4=B9=E8=B5=84=E6=BA=90?= =?UTF-8?q?=EF=BC=8C=E5=AE=9A=E6=97=B6=E4=B9=9F=E9=9C=80=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index 5887018..b6fd506 100644 --- a/robot.py +++ b/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}")