QQ 开放平台 Bot API 的 Openclaw 渠道插件,支持 C2C 私聊、群聊 @消息、频道消息。
直接使用预装好的腾讯云 Lighthouse 镜像,开箱即用,无需手动安装配置。
openclaw plugins install @sliverp/qqbot@1.3.7
git clone https://github.com/sliverp/qqbot.git && cd qqbot
clawdbot plugins install .
💡 安装过程需要一些时间,尤其是小内存机器,请耐心等待
AppID 和 AppSecret(ClientSecret)AppID:AppSecret交互式配置:
clawdbot channels add
# 选择 qqbot,按提示输入 Token
命令行配置:
clawdbot channels add --channel qqbot --token "AppID:AppSecret"
编辑 ~/.clawdbot/clawdbot.json:
{
"channels": {
"qqbot": {
"enabled": true,
"appId": "你的AppID",
"clientSecret": "你的AppSecret"
}
}
}
# 后台启动
clawdbot gateway restart
# 前台启动(查看日志)
clawdbot gateway --port 18789 --verbose
clawdbot onboard
# 选择 QQ Bot 进行交互式配置
npx -y @sliverp/qqbot@1.3.7 upgrade
热更新后无需重新配置 AppId 和 AppSecret。该方式Openclaw和Node.js会占用大量内存,小内存机器优先建议使用源码方式热更新
git clone https://github.com/sliverp/qqbot.git && cd qqbot
# 运行升级脚本
bash ./scripts/upgrade.sh
# 重新安装
clawdbot plugins install .
# 重新配置
clawdbot channels add --channel qqbot --token "AppID:AppSecret"
# 重启网关
clawdbot gateway restart
升级脚本会自动清理旧版本和配置。
MIT