B站回复小助手,接入大模型自动回复。
主要特性有:
- 自动回复评论区
欢迎加入一起开发,或者分享你的建议和想法。
-
安装
git -
克隆项目到本地
cd /home git clone https://github.com/Blushyes/BChat.git cd ./BChat
-
把
config.example.json重命名config.json并填写好对应的APPID、API_KEY、API_SECRETmv config.example.json config.json vim config.json
{ "global": { "reply_myself_switch": "ON", "uid": 1472871866 }, "model": { "xunfei": { "appid": "你的讯飞星火大模型的APPID", "api_secret": "你的讯飞星火大模型的API_SECRET", "api_key": "你的讯飞星火大模型的API_KEY" } }, "persistent": { "strategy": "simple" } } -
安装
docker -
在项目根目录运行如下指令
chmod +x ./build.sh ./build.sh
-
现在程序已经运行了,在
BChat/tmp文件夹内找到qrcode.png文件打开并扫码即可登录成功
-
直接去
GitHub下载项目解压到本地 -
把
config.example.json重命名config.json并填写好对应的APPID、API_KEY、API_SECRET{ "global": { "reply_myself_switch": "ON", "uid": 1472871866 }, "model": { "xunfei": { "appid": "你的讯飞星火大模型的APPID", "api_secret": "你的讯飞星火大模型的API_SECRET", "api_key": "你的讯飞星火大模型的API_KEY" } }, "persistent": { "strategy": "simple" } } -
安装
Python环境 -
在项目根目录打开
cmd运行如下命令:pip install -r requirements.txt # 安装程序所需的库 -
直接打开
main.py文件即可运行扫码登录