moltbot-feishu 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,47 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/moltbot-feishu)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **🆕 2025.1.31 更新**:v0.2.0 多版本兼容,修复 Zod schema 问题,支持 Clawdbot / OpenClaw / Moltbot
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
让 AI 助手接入飞书,无需服务器。
|
|
8
|
+
Connect your AI assistant to Feishu (Lark) — no server required.
|
|
8
9
|
|
|
9
10
|
---
|
|
10
11
|
|
|
11
|
-
## 🚀
|
|
12
|
+
## 🚀 三种安装方式 / Three Install Methods
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
| 方式 | 命令 | 适合 |
|
|
15
|
+
|------|------|------|
|
|
16
|
+
| **① Clawdbot 一键安装** | 告诉你的 Clawdbot:`帮我安装飞书插件` | 新手首选,全自动 |
|
|
17
|
+
| **② npm 插件安装** | `clawdbot plugins install moltbot-feishu` | 开发者,一体化管理 |
|
|
18
|
+
| **③ 独立桥接** | [feishu-openclaw](https://github.com/AlexAnys/feishu-openclaw) | 求稳/隔离部署 |
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
### 方式对比 / Comparison
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## 手动安装 / Manual Install
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
clawdbot plugins install moltbot-feishu
|
|
29
|
-
```
|
|
22
|
+
| | 插件 (①②) | 桥接 (③) |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| 进程数 | 1 个(内置 Gateway) | 2 个(独立进程) |
|
|
25
|
+
| 崩溃影响 | 影响 Gateway | 互不影响 |
|
|
26
|
+
| 配置方式 | `clawdbot config` | 环境变量 |
|
|
27
|
+
| 适合场景 | 日常使用 | 生产/隔离部署 |
|
|
30
28
|
|
|
31
29
|
---
|
|
32
30
|
|
|
33
|
-
## 你必须做的事 / What You Must Do
|
|
31
|
+
## 📋 你必须做的事 / What You Must Do
|
|
34
32
|
|
|
35
33
|
### 1. 创建飞书机器人 / Create Feishu Bot
|
|
36
34
|
|
|
37
35
|
1. [飞书开放平台](https://open.feishu.cn/app) → 创建企业自建应用
|
|
38
36
|
2. 添加「机器人」能力
|
|
39
|
-
3.
|
|
40
|
-
- `im:message
|
|
41
|
-
- `im:message.group_at_msg
|
|
42
|
-
- `im:message.p2p_msg
|
|
43
|
-
4. **事件订阅** → `im.message.receive_v1` → ⚠️
|
|
37
|
+
3. **权限配置** — 开启:
|
|
38
|
+
- `im:message`
|
|
39
|
+
- `im:message.group_at_msg`
|
|
40
|
+
- `im:message.p2p_msg`
|
|
41
|
+
4. **事件订阅** → `im.message.receive_v1` → ⚠️ **选「长连接」不是 webhook**
|
|
44
42
|
5. 版本管理 → 创建版本 → 发布上线
|
|
45
|
-
6. 记下 **App ID
|
|
43
|
+
6. 记下 **App ID** (`cli_xxx`) 和 **App Secret**
|
|
46
44
|
|
|
47
45
|
### 2. 配置 / Configure
|
|
48
46
|
|
|
@@ -59,29 +57,29 @@ clawdbot gateway restart
|
|
|
59
57
|
|
|
60
58
|
---
|
|
61
59
|
|
|
62
|
-
## ⚠️ 常见问题 /
|
|
60
|
+
## ⚠️ 常见问题 / Troubleshooting
|
|
63
61
|
|
|
64
|
-
###
|
|
62
|
+
### 收不到消息? / Not receiving messages?
|
|
65
63
|
|
|
66
64
|
| 检查项 | Check |
|
|
67
65
|
|--------|-------|
|
|
68
66
|
| 应用已发布(不是草稿) | App is published (not draft) |
|
|
69
|
-
|
|
|
70
|
-
| 权限都已开启 | All permissions
|
|
67
|
+
| 事件订阅用「长连接」 | Event uses "long connection" |
|
|
68
|
+
| 权限都已开启 | All permissions enabled |
|
|
71
69
|
|
|
72
|
-
###
|
|
70
|
+
### 报错 `not configured`?
|
|
73
71
|
|
|
74
|
-
|
|
72
|
+
**必须用 `appSecret`,不是 `appSecretPath`**:
|
|
75
73
|
|
|
76
74
|
```bash
|
|
77
75
|
# ✅ 正确
|
|
78
76
|
clawdbot config set channels.feishu.appSecret "你的secret"
|
|
79
77
|
|
|
80
|
-
# ❌ 错误 —
|
|
78
|
+
# ❌ 错误 — 插件不支持
|
|
81
79
|
clawdbot config set channels.feishu.appSecretPath "/path/to/file"
|
|
82
80
|
```
|
|
83
81
|
|
|
84
|
-
###
|
|
82
|
+
### 群聊不回复? / No response in groups?
|
|
85
83
|
|
|
86
84
|
@机器人,或消息末尾加问号。
|
|
87
85
|
|
|
@@ -89,7 +87,7 @@ clawdbot config set channels.feishu.appSecretPath "/path/to/file"
|
|
|
89
87
|
|
|
90
88
|
## 特点 / Features
|
|
91
89
|
|
|
92
|
-
- **无需服务器** — WebSocket
|
|
90
|
+
- **无需服务器** — WebSocket 长连接
|
|
93
91
|
- **私聊+群聊** — 都支持
|
|
94
92
|
- **图片文件** — 收发都行
|
|
95
93
|
- **多账号** — 可同时接多个机器人
|
|
@@ -98,9 +96,11 @@ clawdbot config set channels.feishu.appSecretPath "/path/to/file"
|
|
|
98
96
|
|
|
99
97
|
## 链接 / Links
|
|
100
98
|
|
|
101
|
-
- [
|
|
102
|
-
- [
|
|
103
|
-
- [
|
|
99
|
+
- 📦 [npm: moltbot-feishu](https://www.npmjs.com/package/moltbot-feishu)
|
|
100
|
+
- 🔌 [GitHub: moltbot-feishu](https://github.com/AlexAnys/openclaw-feishu) (插件)
|
|
101
|
+
- 🌉 [GitHub: feishu-openclaw](https://github.com/AlexAnys/feishu-openclaw) (桥接)
|
|
102
|
+
- 📖 [Clawdbot 文档](https://docs.clawd.bot)
|
|
103
|
+
- 🐛 [问题反馈](https://github.com/AlexAnys/openclaw-feishu/issues)
|
|
104
104
|
|
|
105
105
|
## License
|
|
106
106
|
|