From 18a2094e8a82f8b61cfbeee18922bdd36f5f87f7 Mon Sep 17 00:00:00 2001 From: Liu Date: Wed, 19 Mar 2025 19:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E5=9C=A8=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=86=85=E5=AE=B9=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=B9=8B=E5=90=8E=E5=86=8D=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/main.py b/main.py index 54baae4..7f3e1c6 100644 --- a/main.py +++ b/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()