From 03e2ff90c9395a0c3697e15952127e07d15414e0 Mon Sep 17 00:00:00 2001 From: TechShrimp <939178127@qq.com> Date: Sun, 1 Oct 2023 21:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8F=90=E9=86=92=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=B7=A5=E4=BD=9C=E6=97=A5=E5=91=A8=E6=8A=A5?= =?UTF-8?q?=E6=9C=88=E6=8A=A5=E6=97=A5=E6=8A=A5=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 00f992b..62394dc 100644 --- a/main.py +++ b/main.py @@ -38,9 +38,7 @@ def main(): robot.LOG.info("正在启动机器人···") # 机器人启动发送测试消息 - # robot.sendTextMsg("机器人启动成功!", "filehelper") - # 打印全部微信联系人 - print(robot.getAllContacts()) + robot.sendTextMsg("机器人启动成功!", "filehelper") # 接收消息 # robot.enableRecvMsg() # 可能会丢消息? @@ -50,9 +48,10 @@ def main(): robot.onEveryTime("07:00", weather_report, robot=robot) # 每天 7:30 发送新闻 - #robot.onEveryTime("07:30", robot.newsReport) + robot.onEveryTime("07:30", robot.newsReport) - robot.onEveryTime("21:42", ReportReminder.remind, robot=robot) + # 每天 4:30 提醒发日报周报月报 + robot.onEveryTime("4:30", ReportReminder.remind, robot=robot) # 让机器人一直跑 robot.keepRunningAndBlockProcess()