Some checks failed
CI / install-check (push) Has been cancelled
CI / checks (bunx tsc -p tsconfig.json, bun, build) (push) Has been cancelled
CI / checks (bunx vitest run, bun, test) (push) Has been cancelled
CI / checks (pnpm build, node, build) (push) Has been cancelled
CI / checks (pnpm format, node, format) (push) Has been cancelled
CI / checks (pnpm lint, node, lint) (push) Has been cancelled
CI / checks (pnpm protocol:check, node, protocol) (push) Has been cancelled
CI / checks (pnpm test, node, test) (push) Has been cancelled
CI / secrets (push) Has been cancelled
CI / checks-windows (pnpm build, node, build) (push) Has been cancelled
CI / checks-windows (pnpm lint, node, lint) (push) Has been cancelled
CI / checks-windows (pnpm protocol:check, node, protocol) (push) Has been cancelled
CI / checks-windows (pnpm test, node, test) (push) Has been cancelled
CI / checks-macos (pnpm test, test) (push) Has been cancelled
CI / macos-app (set -euo pipefail
for attempt in 1 2 3; do
if swift build --package-path apps/macos --configuration release; then
exit 0
fi
echo "swift build failed (attempt $attempt/3). Retrying…"
sleep $((attempt * 20))
done
exit 1
, build) (push) Has been cancelled
CI / macos-app (set -euo pipefail
for attempt in 1 2 3; do
if swift test --package-path apps/macos --parallel --enable-code-coverage --show-codecov-path; then
exit 0
fi
echo "swift test failed (attempt $attempt/3). Retrying…"
sleep $((attempt *… (push) Has been cancelled
CI / macos-app (swiftlint --config .swiftlint.yml
swiftformat --lint apps/macos/Sources --config .swiftformat
, lint) (push) Has been cancelled
CI / ios (push) Has been cancelled
CI / android (./gradlew --no-daemon :app:assembleDebug, build) (push) Has been cancelled
CI / android (./gradlew --no-daemon :app:testDebugUnitTest, test) (push) Has been cancelled
Docker Release / build-amd64 (push) Has been cancelled
Docker Release / build-arm64 (push) Has been cancelled
Install Smoke / install-smoke (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Docker Release / create-manifest (push) Has been cancelled
- Implement QQ Bot API client with token caching - Add WebSocket monitor for event handling - Support C2C (single chat) and group messages - Include pairing mechanism for DM authorization Also fix memory-core peerDependencies to use workspace:*
39 lines
647 B
Markdown
39 lines
647 B
Markdown
# Moltbot QQ Channel Plugin
|
|
|
|
QQ 机器人官方 API 渠道插件,支持:
|
|
- 单聊 (C2C) 消息
|
|
- 群聊 @机器人 消息
|
|
- 频道消息 (可选)
|
|
|
|
## 配置
|
|
|
|
在 `~/.clawdbot/clawdbot.json` 中添加:
|
|
|
|
```json5
|
|
{
|
|
channels: {
|
|
qq: {
|
|
appId: "YOUR_APP_ID",
|
|
appSecret: "YOUR_APP_SECRET",
|
|
enabled: true
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
或使用环境变量:
|
|
```bash
|
|
export QQ_APP_ID=your_app_id
|
|
export QQ_APP_SECRET=your_secret
|
|
```
|
|
|
|
## 获取凭据
|
|
|
|
1. 访问 [QQ 开放平台](https://q.qq.com/)
|
|
2. 创建机器人应用
|
|
3. 获取 AppID 和 AppSecret
|
|
|
|
## 事件订阅
|
|
|
|
需要在 QQ 开放平台配置 WebSocket 事件订阅 Intents。
|