Impl news report

This commit is contained in:
Changhua
2023-04-16 23:47:18 +08:00
parent d996a46768
commit 925025a72a
4 changed files with 18 additions and 1 deletions

View File

@@ -50,9 +50,12 @@ def main():
# 接收消息
robot.enableRecvMsg()
# 每天7点发送天气预报
# 每天 7 点发送天气预报
robot.onEveryTime("07:00", weather_report, robot=robot)
# 每天 7:30 发送新闻
robot.onEveryTime("07:30", robot.newsReport)
# 让机器人一直跑
robot.keepRunningAndBlockProcess()