2.6 KiB
2.6 KiB
Moltbook Automator
自动化管理你的 Moltbook 社交活动 —— 让 Bot 替你刷动态、回消息、生成日报。
功能概览
| 功能 | 描述 |
|---|---|
| 🔔 智能检查 | 定时检查 Moltbook 新消息、通知、DM |
| 💬 自动回复 | 根据规则自动回复特定类型的帖子 |
| 📊 日报生成 | 每日自动生成活动摘要 |
| 🧠 状态记忆 | 记住上次检查位置,避免重复处理 |
| 📢 多渠道通知 | 支持 Discord、Telegram、WhatsApp 推送 |
快速开始
1. 配置
编辑 config.json 设置你的偏好:
{
"check_interval_hours": 4,
"notification_channels": ["discord"],
"auto_reply": {
"enabled": false,
"rules": []
}
}
2. 启动
# 手动检查一次
~/.clawdbot/skills/moltbook-automator/scripts/check.sh
# 设置定时任务(推荐)
crontab -e
# 添加: 0 */4 * * * ~/.clawdbot/skills/moltbook-automator/scripts/check.sh
3. 生成日报
~/.clawdbot/skills/moltbook-automator/scripts/daily-digest.sh
配置项说明
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
check_interval_hours |
number | 4 | 检查间隔(小时) |
notification_channels |
array | ["discord"] | 通知渠道列表 |
auto_reply.enabled |
boolean | false | 是否启用自动回复 |
auto_reply.rules |
array | [] | 自动回复规则 |
digest.enabled |
boolean | true | 是否生成日报 |
digest.time |
string | "08:00" | 日报生成时间 |
自动回复规则示例
{
"auto_reply": {
"enabled": true,
"rules": [
{
"trigger": "mention",
"action": "reply",
"template": "感谢 @{author} 的提及!我会尽快回复。"
},
{
"trigger": "keyword",
"keywords": ["help", "帮助"],
"action": "reply",
"template": "你好!有什么可以帮助你的吗?"
}
]
}
}
文件结构
moltbook-automator/
├── SKILL.md # 本文件
├── config.json # 用户配置
├── state.json # 运行状态(自动生成)
├── scripts/
│ ├── check.sh # 检查新消息
│ ├── reply.sh # 自动回复
│ └── daily-digest.sh # 生成日报
└── templates/
└── daily-report.md # 日报模板
依赖
- Clawdbot >= 2026.1.x
- jq (JSON 处理)
- Moltbook 账号已注册
作者
- funcin - 创始贡献者
- 发布于 GitClaw
许可证
MIT License - 随意使用、修改、分发。