From ac67838529a2afe3870154df3c86ef3adcbe2828 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 24 Feb 2025 11:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=AF=8F1=E4=B8=AA=E5=B0=8F=E6=97=B6?= =?UTF-8?q?=E5=8F=91=E6=94=BE=E4=B8=80=E4=B8=AA=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index 3c51e09..46963e1 100644 --- a/robot.py +++ b/robot.py @@ -24,7 +24,8 @@ from base.func_xinghuo_web import XinghuoWeb from base.func_claude import Claude from configuration import Config from constants import ChatType -from game_task.game_task_encyclopedia import game_process_message, setup_schedule +from game_task.game_task_encyclopedia import game_process_message, setup_schedule, get_group_ids, \ + run_random_task_assignment from group_auto.group_auto_invite import get_first_group_id, process_command from group_auto.group_member_change import GroupMemberChange from robot_cmd.robot_command import GroupBotManager @@ -507,6 +508,9 @@ class Robot(Job): # 设置定时任务 def game_auto_tasks(self): try: - setup_schedule() + group_ids = get_group_ids() + for gid in group_ids: + 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}")