定时器在所有内容初始化完成之后再执行
This commit is contained in:
2
robot.py
2
robot.py
@@ -570,7 +570,7 @@ class Robot(Job):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.LOG.error(f"SendRanking error:{e}")
|
self.LOG.error(f"SendRanking error:{e}")
|
||||||
# 设置定时任务
|
# 设置定时任务
|
||||||
@scheduled_job(cron="0 0 18 * * *", name="每天发一个游戏任务")
|
@scheduled_job(cron="0 40 19 * * *", name="每天发一个游戏任务")
|
||||||
def game_auto_tasks(self):
|
def game_auto_tasks(self):
|
||||||
try:
|
try:
|
||||||
group_ids = get_group_ids()
|
group_ids = get_group_ids()
|
||||||
|
|||||||
Reference in New Issue
Block a user