Soulter / AstrBot

QQ、Telegram、微信 等多平台兼容的支持 LLM 聊天的机器人平台。支持自定义插件扩展。
GNU Affero General Public License v3.0
597 stars 60 forks source link

QQ频道机器人(官方SDK)启动失败 #142

Closed Paste-Fried-tofu closed 8 months ago

Paste-Fried-tofu commented 9 months ago

完全按照wiki配置了appid和token, 但是启动失败:

[12-22 19:51:12] [WARNING] [System]: 未设置管理者QQ号(管理者才能使用update/plugin等指令),如需设置,请编辑 cmd_config.json 文件 [12-22 19:51:12] [WARNING] [System]: 未设置管理者QQ频道用户号(管理者才能使用update/plugin等指令),如需设置,请编辑 cmd_config.json 文件。可在频道发送指令 !myid 获取 [12-22 19:51:12] [INFO] [System]: 机器人部署教程: https://github.com/Soulter/QQChannelChatGPT/wiki/ [12-22 19:51:12] [INFO] [System]: 如果有任何问题, 请在 https://github.com/Soulter/QQChannelChatGPT 上提交issue或加群322154837 [12-22 19:51:12] [INFO] [System]: 请给 https://github.com/Soulter/QQChannelChatGPT 点个star! [12-22 19:51:12] [INFO] [System]: - 启用QQ频道机器人 - [12-22 19:51:12] [CRITICAL] [QQ频道]: 启动QQ频道机器人时出现错误, 原因如下: Client.start() got an unexpected keyword argument 'token' [12-22 19:51:12] [CRITICAL] [System]: 如果您是初次启动,请修改配置文件(QQChannelChatGPT/config.yaml)详情请看:https://github.com/Soulter/QQChannelChatGPT/wiki。Client.start() got an unexpected keyword argument 'token' 按回车退出程序。 [12-22 19:51:12] [INFO] [System]: 🎉 项目启动完成。

排查后发现官方机器人SDK目前需要传参secret, 而不是token。

Soulter commented 9 months ago

你好,这个问题我今晚会修一下。 如果急用,请执行下面的指令:

pip3 uninstall qq-botpy
pip3 install qq-botpy==1.1.2
Soulter commented 8 months ago

已修复