1.加入了指令;
2.判断接收人从redis+本地缓存中提取; 3.做本地缓存与redis实时同步;
This commit is contained in:
8
main.py
8
main.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user