feature:1.点歌功能,2.签到功能
This commit is contained in:
14
main.py
14
main.py
@@ -25,25 +25,25 @@ def main(chat_type: int):
|
||||
robot.LOG.info(f"WeChatRobot【{__version__}】成功启动···")
|
||||
|
||||
# 机器人启动发送测试消息
|
||||
robot.sendTextMsg("机器人启动成功!", "filehelper")
|
||||
robot.send_text_msg("机器人启动成功!", "filehelper")
|
||||
|
||||
# 接收消息
|
||||
# robot.enableRecvMsg() # 可能会丢消息?
|
||||
robot.enableReceivingMsg() # 加队列
|
||||
|
||||
# 每天 8:30 发送新闻
|
||||
robot.onEveryTime("08:30", robot.newsBaiduReportAuto)
|
||||
robot.onEveryTime("08:30", robot.news_baidu_report_auto)
|
||||
|
||||
# epic
|
||||
robot.onEveryTime("10:30", robot.sendEpicFreeGames)
|
||||
robot.onEveryTime("10:30", robot.send_epic_free_games)
|
||||
|
||||
# message report 1:数据自动从redis 转到sqllite
|
||||
robot.onEveryTime("00:30", robot.messageCountToDB)
|
||||
robot.onEveryTime("00:30", robot.message_count_to_db)
|
||||
# 从db中提取并发送给相关群
|
||||
robot.onEveryTime("09:30", robot.generateAndSendRanking)
|
||||
robot.onEveryTime("09:30", robot.generate_and_send_ranking)
|
||||
|
||||
# sehuatang
|
||||
robot.onEveryTime("15:00", robot.generateSehuatangPdf)
|
||||
robot.onEveryTime("15:00", robot.generate_sehuatang_pdf)
|
||||
|
||||
# 游戏的定时任务每小时执行
|
||||
robot.onEveryTime("18:00", robot.game_auto_tasks)
|
||||
@@ -55,7 +55,7 @@ def main(chat_type: int):
|
||||
robot.onEveryTime("17:30", robot.xiu_ren_pdf_send)
|
||||
|
||||
# 让机器人一直跑
|
||||
robot.keepRunningAndBlockProcess()
|
||||
robot.keep_running_and_block_process()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user