moltbot-wechaty
v0.1.0
Published
Moltbot Wechaty channel plugin for messaging platforms
Maintainers
Readme
moltbot-wechaty
Wechaty channel plugin for Clawdbot.
Installation
clawdbot plugins install moltbot-wechatyOr install via npm:
npm install moltbot-wechatyConfiguration
- Create a self-built app on Feishu Open Platform
- Get your App ID and App Secret from the Credentials page
- Enable required permissions (see below)
- Configure the plugin:
Required Permissions
| Permission | Scope | Description |
|------------|-------|-------------|
| contact:user.base:readonly | User info | Get basic user information |
| im:message | Messaging | Send and receive messages |
| im:message.p2p_msg:readonly | DM | Read direct messages to bot |
| im:message.group_at_msg:readonly | Group | Receive @mention messages in groups |
| im:message:send_as_bot | Send | Send messages as the bot |
| im:resource | Media | Upload and download images/files |
Optional Permissions (for full functionality)
| Permission | Scope | Description |
|------------|-------|-------------|
| im:message.group_msg | Group | Read all group messages (sensitive) |
| im:message:readonly | Read | Get message history |
| im:message:update | Edit | Update/edit sent messages |
| im:message:recall | Recall | Recall sent messages |
| im:message.reactions:read | Reactions | View message reactions |
clawdbot config set channels.wechaty.appId "cli_xxxxx"
clawdbot config set channels.wechaty.appSecret "your_app_secret"
clawdbot config set channels.wechaty.enabled trueConfiguration Options
channels:
wechaty:
enabled: true
appId: "cli_xxxxx"
appSecret: "secret"
# Domain: "feishu" (China) or "lark" (International)
domain: "feishu"
dmPolicy: "pairing"
# Group policy: "open" | "allowlist" | "disabled"
groupPolicy: "allowlist"
# Require @mention in groups
requireMention: trueFeatures
- WebSocket connection modes
- Direct messages and group chats
- Message replies and quoted message context
- Image and file uploads
- Typing indicator (via emoji reactions)
- Pairing flow for DM approval
- User and group directory lookup
License
MIT
