每小时发放一个任务。

This commit is contained in:
Liu
2025-02-21 20:14:26 +08:00
parent f45823b0d4
commit 92d0235d45
3 changed files with 12 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ 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
from game_task.game_task_encyclopedia import game_process_message, setup_schedule
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
@@ -503,3 +503,10 @@ class Robot(Job):
self.sendTextMsg("群发言总结功能未开启", sender)
except Exception as e:
self.LOG.error(f"message_summary_robot error{e}")
# 设置定时任务
def game_auto_tasks(self):
try:
setup_schedule()
except Exception as e:
self.LOG.error(f"message_summary_robot error{e}")