1.加入了指令;

2.判断接收人从redis+本地缓存中提取;
3.做本地缓存与redis实时同步;
This commit is contained in:
liuwei
2025-02-17 13:02:01 +08:00
parent cf01ed97f7
commit af2ef96c3e
4 changed files with 294 additions and 26 deletions

View File

@@ -50,22 +50,20 @@ def main(chat_type: int):
# robot.onEveryTime("07:00", weather_report, robot=robot)
# 每天 8:30 发送新闻
robot.onEveryTime("08:30", robot.newsBaiduReport)
robot.onEveryTime("08:30", robot.newsBaiduReportAuto)
# 每天 16:30 提醒发日报周报月报
# robot.onEveryTime("10:30", ReportReminder.remind, robot=robot)
# epic
robot.onEveryTime("10:30", robot.sendEpicFreeGames)
# message report 1:数据自动从redis 转到sqllite
robot.onEveryTime("00:30", robot.messageCountToDB)
# 从db中提取并发送给相关群
robot.onEveryTime("09:30", robot.generateAndSendRanking)
#sehuatang
robot.onEveryTime("15:00",robot.generateSehuatangPdf)
# sehuatang
robot.onEveryTime("15:00", robot.generateSehuatangPdf)
# 让机器人一直跑
robot.keepRunningAndBlockProcess()