运行时依赖
安装命令
点击复制技能文档
One Calendar - 单向历
📅 一天,一张图,一份日历的温度。
快速开始
- 配置
向导会引导你输入飞书用户 ID 并保存配置。
- 使用
手动发送:
node scripts/发送.js
对话触发:
单向历 今日单向历 发单向历
定时任务(每天早上 8 点):
OpenClaw cron 添加 \ --name "每日单向历" \ --at "0 8 *" \ --会话 isolated \ --message "node ~/.OpenClaw/workspace/技能s/one-calendar/scripts/发送.js" \ --workdir ~/.OpenClaw/workspace
配置说明
配置文件:config.json(由 设置up.js 生成)
{ "feishu": { "userId": "ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }, "设置tings": { "timezone": "Asia/ShanghAI", "baseUrl": "https://img.owspace.com/Public/上传s/下载" } }
获取飞书用户 ID:运行 OpenClaw 记录s --follow,然后在飞书中给机器人发消息,日志中 ou_ 开头的字符串即为你的 ID。
文件结构 one-calendar/ ├── config.example.json # 配置模板 ├── config.json # 用户配置(设置up.js 生成) ├── 技能.md # 技能定义 ├── README.md # 详细文档 └── scripts/ ├── 发送.js # 发送脚本 └── 设置up.js # 配置向导
注意事项 首次使用请先运行 node scripts/设置up.js 飞书用户 ID 必须以 ou_ 开头 图片源为单向历官方服务器,格式:{YEAR}/{MMDD}.jpg