74 lines
1.1 KiB
Markdown

# OpenClaw VoceChat Plugin
VoceChat channel plugin for OpenClaw.
## Features
- ✅ WebSocket 实时消息接收
- ✅ 支持私聊和群聊
- ✅ 支持文本、图片、文件消息
- ✅ 配对模式安全控制
- ✅ 多账号支持
## Installation
### From Git
```bash
git clone <your-repo-url> ~/.openclaw/extensions/vocechat
cd ~/.openclaw/extensions/vocechat
pnpm install
```
### Enable Plugin
```bash
openclaw plugins enable vocechat
```
## Configuration
Edit `~/.openclaw/openclaw.json`:
```json5
{
channels: {
vocechat: {
enabled: true,
dmPolicy: "pairing", // "pairing" | "allowlist" | "open"
accounts: {
default: {
serverUrl: "https://your-vocechat-server.com",
apiKey: "your-api-key",
botName: "OpenClaw Bot",
},
},
},
},
}
```
## Usage
1. Start the gateway:
```bash
openclaw gateway
```
2. Send a message to your VoceChat bot
3. Approve pairing (if dmPolicy is "pairing"):
```bash
openclaw pairing approve vocechat <CODE>
```
## Development
```bash
pnpm install
pnpm dev
```
## License
MIT