Channels
Ydim
YDIM channel plugin for [OpenClaw]
Install
openclaw plugins install openclaw-ydim
Configuration Example
{
"channels": {
"ydim": {
"enabled": true,
"robotId": "your-robot-id",
"appsecret": "your-appsecret",
"baseUrl": "https://your-ydim-server:port",
"dmPolicy": "open",
"groupPolicy": "disabled"
}
},
"plugins": {
"entries": {
"ydim": { "enabled": true }
}
}
}
README
# openclaw-ydim
YDIM channel plugin for [OpenClaw](https://github.com/openclaw/openclaw),将 YDIM 即时通讯接入 OpenClaw AI 智能体框架。
## 安装
```bash
openclaw plugins install openclaw-ydim
```
## 配置
编辑 `~/.openclaw/openclaw.json`:
```json
{
"channels": {
"ydim": {
"enabled": true,
"robotId": "your-robot-id",
"appsecret": "your-appsecret",
"baseUrl": "https://your-ydim-server:port",
"dmPolicy": "open",
"groupPolicy": "disabled"
}
},
"plugins": {
"entries": {
"ydim": { "enabled": true }
}
}
}
```
或使用 CLI:
```bash
openclaw config set channels.ydim.robotId "your-robot-id"
openclaw config set channels.ydim.appsecret "your-appsecret"
openclaw config set channels.ydim.enabled true
```
## 配置参数
| 参数 | 类型 | 必需 | 默认值 | 说明 |
|------|------|------|--------|------|
| `robotId` | string | ✅ | | 机器人 ID |
| `appsecret` | string | ✅ | | 应用 Secret |
| `baseUrl` | string | ✅ | | HTTP API 基础 URL |
| `dmPolicy` | string | | `"open"` | 私信策略:`open` / `pairing` / `allowlist` |
| `allowFrom` | string[] | | | `dmPolicy: "allowlist"` 时的白名单用户 ID |
| `groupPolicy` | string | | `"disabled"` | 群组策略:`open` / `allowlist` / `disabled` |
| `groupAllowFrom` | string[] | | | `groupPolicy: "allowlist"` 时的白名单群组 ID |
| `blockStreaming` | boolean | | `true` | 等待完整回复后再发送 |
| `maxRetries` | number | | `3` | 消息发送最大重试次数 |
## 启动
```bash
openclaw gateway restart
```
配置完成后重启 gateway,YDIM channel 会自动连接。在 YDIM 客户端向机器人发消息,OpenClaw agent 即会响应。
channels
Comments
Sign in to leave a comment