加入定时任务
This commit is contained in:
19
main.py
19
main.py
@@ -40,6 +40,25 @@ def main(chat_type: int):
|
||||
robot.LOG.info("wechat_ipad客户端启动成功")
|
||||
else:
|
||||
robot.LOG.error("wechat_ipad客户端启动失败")
|
||||
# # 每天 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("02:30", robot.message_count_to_db)
|
||||
# # 从db中提取并发送给相关群
|
||||
robot.onEveryTime("09:30", robot.generate_and_send_ranking)
|
||||
#
|
||||
# # sehuatang
|
||||
# robot.onEveryTime("15:30", robot.generate_sehuatang_pdf)
|
||||
#
|
||||
# # 秀人网每天自动下载帖子
|
||||
robot.onEveryTime("01:30", robot.xiu_ren_download_task)
|
||||
#
|
||||
# # 秀人网每天自动发pdf
|
||||
# robot.onEveryTime("17:30", robot.xiu_ren_pdf_send)
|
||||
|
||||
# 启动Dashboard服务器
|
||||
dashboard_server = None
|
||||
|
||||
Reference in New Issue
Block a user