定时器在所有内容初始化完成之后再执行
This commit is contained in:
22
main.py
22
main.py
@@ -30,6 +30,28 @@ def main(chat_type: int):
|
||||
|
||||
# 接收消息
|
||||
robot.enableReceivingMsg() # 加队列
|
||||
# 每天 8:30 发送新闻
|
||||
robot.onEveryTime("08:30", robot.news_baidu_report_auto)
|
||||
|
||||
# epic
|
||||
robot.onEveryTime("10:30", robot.send_epic_free_games)
|
||||
|
||||
# message report 1:数据自动从redis 转到sqllite
|
||||
robot.onEveryTime("00:30", robot.message_count_to_db)
|
||||
# 从db中提取并发送给相关群
|
||||
robot.onEveryTime("09:30", robot.generate_and_send_ranking)
|
||||
|
||||
# sehuatang
|
||||
robot.onEveryTime("15:00", robot.generate_sehuatang_pdf)
|
||||
|
||||
# 游戏的定时任务每小时执行
|
||||
robot.onEveryTime("19:45", robot.game_auto_tasks)
|
||||
|
||||
# 秀人网每天自动下载帖子
|
||||
robot.onEveryTime("01:30", robot.xiu_ren_download_task)
|
||||
|
||||
# 秀人网每天自动发pdf
|
||||
robot.onEveryTime("17:30", robot.xiu_ren_pdf_send)
|
||||
|
||||
# 加载插件系统
|
||||
robot.plugin_manager.load_all_plugins()
|
||||
|
||||
Reference in New Issue
Block a user