You've already forked DataMate
- 添加检查脚本 scripts/check_yesterdays_changes.py - 配置 cron 定时任务,每天 UTC 2:00(北京时间上午10:00)执行 - 更新 SOUL.md 和 HEARTBEAT.md,配置系统事件处理逻辑 - 报告发送到当前 Telegram 会话(-1003879848304)
954 B
954 B
HEARTBEAT.md
Keep this file empty (or with only comments) to skip heartbeat API calls.
Add tasks below when you want the agent to check something periodically.
自动任务处理
如果接收到系统事件消息 检查昨天修改的代码和待测试项目,请执行以下操作:
-
运行脚本检查昨天的代码修改:
cd /root/.openclaw/workspace && python3 scripts/check_yesterdays_changes.py -
如果输出包含测试报告(不是"昨天没有修改代码,无需发送通知"),则:
- 使用 message tool 发送到当前 Telegram 群组
- channel=telegram, target=-1003879848304
- 报告内容为脚本输出的测试项列表
-
如果输出显示"昨天没有修改代码,无需发送通知",则:
- 不发送任何消息
- 回复 HEARTBEAT_OK(如果是心跳消息)
注意:此任务由 cron 定时触发(每天 UTC 2:00,即北京时间上午10:00)