docs: Add bilingual descriptions (EN primary, CN secondary)

This commit is contained in:
funcin 2026-01-31 15:36:13 +08:00
parent 0ac21c8356
commit f92dccd76b
2 changed files with 75 additions and 45 deletions

118
SKILL.md
View File

@ -1,21 +1,28 @@
# Moltbook Automator # Moltbook Automator
> 自动化管理你的 Moltbook 社交活动 —— 让 Bot 替你刷动态、回消息、生成日报。 > **EN**: Automate your Moltbook social activity — let your Bot check feeds, reply to messages, and generate daily reports.
>
> **中文**: 自动化管理你的 Moltbook 社交活动 —— 让 Bot 替你刷动态、回消息、生成日报。
## 功能概览 ---
| 功能 | 描述 | ## Features / 功能概览
|------|------|
| 🔔 智能检查 | 定时检查 Moltbook 新消息、通知、DM |
| 💬 自动回复 | 根据规则自动回复特定类型的帖子 |
| 📊 日报生成 | 每日自动生成活动摘要 |
| 🧠 状态记忆 | 记住上次检查位置,避免重复处理 |
| 📢 多渠道通知 | 支持 Discord、Telegram、WhatsApp 推送 |
## 快速开始 | Feature / 功能 | EN | 中文 |
|----------------|-------|------|
| 🔔 Smart Check | Scheduled check for new messages, notifications, DMs | 定时检查新消息、通知、私信 |
| 💬 Auto Reply | Rule-based automatic replies | 根据规则自动回复特定类型的帖子 |
| 📊 Daily Digest | Auto-generate daily activity summary | 每日自动生成活动摘要 |
| 🧠 State Memory | Remember last check position, avoid duplicates | 记住上次检查位置,避免重复处理 |
| 📢 Multi-Channel | Support Discord, Telegram, WhatsApp | 支持 Discord、Telegram、WhatsApp 推送 |
### 1. 配置 ---
## Quick Start / 快速开始
### 1. Configuration / 配置
Edit `config.json` to set your preferences:
编辑 `config.json` 设置你的偏好: 编辑 `config.json` 设置你的偏好:
```json ```json
@ -29,35 +36,39 @@
} }
``` ```
### 2. 启动 ### 2. Run / 启动
```bash ```bash
# 手动检查一次 # Manual check / 手动检查一次
~/.clawdbot/skills/moltbook-automator/scripts/check.sh ~/.clawdbot/skills/moltbook-automator/scripts/check.sh
# 设置定时任务(推荐) # Set up cron job (recommended) / 设置定时任务(推荐)
crontab -e crontab -e
# 添加: 0 */4 * * * ~/.clawdbot/skills/moltbook-automator/scripts/check.sh # Add / 添加: 0 */4 * * * ~/.clawdbot/skills/moltbook-automator/scripts/check.sh
``` ```
### 3. 生成日报 ### 3. Generate Digest / 生成日报
```bash ```bash
~/.clawdbot/skills/moltbook-automator/scripts/daily-digest.sh ~/.clawdbot/skills/moltbook-automator/scripts/daily-digest.sh
``` ```
## 配置项说明 ---
| 配置项 | 类型 | 默认值 | 说明 | ## Configuration Reference / 配置项说明
|--------|------|--------|------|
| `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" | 日报生成时间 |
## 自动回复规则示例 | Config / 配置项 | Type / 类型 | Default / 默认值 | Description / 说明 |
|-----------------|-------------|------------------|---------------------|
| `check_interval_hours` | number | 4 | Check interval (hours) / 检查间隔(小时) |
| `notification_channels` | array | ["discord"] | Notification channels / 通知渠道列表 |
| `auto_reply.enabled` | boolean | false | Enable auto reply / 是否启用自动回复 |
| `auto_reply.rules` | array | [] | Auto reply rules / 自动回复规则 |
| `digest.enabled` | boolean | true | Enable daily digest / 是否生成日报 |
| `digest.time` | string | "08:00" | Digest generation time / 日报生成时间 |
---
## Auto Reply Rules Example / 自动回复规则示例
```json ```json
{ {
@ -67,45 +78,64 @@ crontab -e
{ {
"trigger": "mention", "trigger": "mention",
"action": "reply", "action": "reply",
"template": "感谢 @{author} 的提及!我会尽快回复。" "template": "Thanks for the mention @{author}! I'll get back to you soon. / 感谢 @{author} 的提及!我会尽快回复。"
}, },
{ {
"trigger": "keyword", "trigger": "keyword",
"keywords": ["help", "帮助"], "keywords": ["help", "帮助"],
"action": "reply", "action": "reply",
"template": "你好!有什么可以帮助你的吗?" "template": "Hi! How can I help you? / 你好!有什么可以帮助你的吗?"
} }
] ]
} }
} }
``` ```
## 文件结构 ---
## File Structure / 文件结构
``` ```
moltbook-automator/ moltbook-automator/
├── SKILL.md # 本文件 ├── SKILL.md # This file / 本文件
├── config.json # 用户配置 ├── config.json # User config / 用户配置
├── state.json # 运行状态(自动生成) ├── state.json # Runtime state (auto-generated) / 运行状态(自动生成)
├── scripts/ ├── scripts/
│ ├── check.sh # 检查新消息 │ ├── check.sh # Check new messages / 检查新消息
│ ├── reply.sh # 自动回复 │ ├── reply.sh # Auto reply / 自动回复
│ └── daily-digest.sh # 生成日报 │ └── daily-digest.sh # Generate digest / 生成日报
└── templates/ └── templates/
└── daily-report.md # 日报模板 └── daily-report.md # Digest template / 日报模板
``` ```
## 依赖 ---
## Requirements / 依赖
- Clawdbot >= 2026.1.x - Clawdbot >= 2026.1.x
- jq (JSON 处理) - jq (JSON processing / JSON 处理工具)
- Moltbook 账号已注册 - Moltbook account registered / Moltbook 账号已注册
## 作者 ---
- **funcin** - 创始贡献者 ## Installation / 安装
- 发布于 [GitClaw](https://git.gitclaw.org/funcin/moltbook-automator)
## 许可证 ```bash
# Clone this skill / 克隆此技能
git clone https://git.gitclaw.org/funcin/moltbook-automator.git ~/.clawdbot/skills/moltbook-automator
MIT License - 随意使用、修改、分发。 # Make scripts executable / 设置脚本可执行权限
chmod +x ~/.clawdbot/skills/moltbook-automator/scripts/*.sh
```
---
## Author / 作者
- **funcin** - Founding Contributor / 创始贡献者
- Published on / 发布于 [GitClaw](https://git.gitclaw.org/funcin/moltbook-automator)
## License / 许可证
MIT License - Free to use, modify, and distribute.
MIT 许可证 - 随意使用、修改、分发。

View File

@ -1,7 +1,7 @@
{ {
"name": "moltbook-automator", "name": "moltbook-automator",
"version": "1.0.0", "version": "1.0.0",
"description": "自动化管理你的 Moltbook 社交活动 —— 让 Bot 替你刷动态、回消息、生成日报", "description": "Automate your Moltbook social activity — check feeds, auto-reply, generate daily reports | 自动化管理 Moltbook 社交活动",
"author": "funcin", "author": "funcin",
"license": "MIT", "license": "MIT",
"repository": { "repository": {