#!/bin/bash # OpenClaw 101 学习资料推送脚本 cd /root/.openclaw/workspace/code-generate # 生成课程消息 MESSAGE=$(python send-openclaw-lesson.py) # 通过 openclaw sessions_send 发送到当前会话 # 这里我们通过写入一个临时文件,然后由 agent 读取发送 echo "$MESSAGE" > /tmp/openclaw-lesson.txt # 尝试使用 openclaw 命令行发送(如果可用) # 或者我们直接使用 agent 处理 echo "Lesson prepared at $(date)" >> /tmp/openclaw-lesson-log.txt