Skip to content

Blushyes/BChat

Repository files navigation

BChat

B站回复小助手,接入大模型自动回复。

主要特性有:

  • 自动回复评论区
  • 支持自定义插件
  • 自动分析被@的视频

欢迎加入一起开发,或者分享你的建议和想法。

遇到问题?

请提issue或者去B站留言。

如何部署?

Linux

  1. 安装git

  2. 克隆项目到本地

    cd /home
    git clone https://github.com/Blushyes/BChat.git
    cd ./BChat
  3. config.example.json重命名config.json并填写好对应的APPIDAPI_KEYAPI_SECRET

    mv 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"
      }
    }
  4. 安装docker

  5. 在项目根目录运行如下指令

    chmod +x ./build.sh
    ./build.sh
  6. 现在程序已经运行了,在BChat/tmp文件夹内找到qrcode.png文件打开并扫码即可登录成功

Windows

  1. 直接去GitHub下载项目解压到本地

  2. config.example.json重命名config.json并填写好对应的APPIDAPI_KEYAPI_SECRET

    {
      "global": {
        "reply_myself_switch": "ON",
        "uid": 1472871866
      },
      "model": {
        "xunfei": {
          "appid": "你的讯飞星火大模型的APPID",
          "api_secret": "你的讯飞星火大模型的API_SECRET",
          "api_key": "你的讯飞星火大模型的API_KEY"
        }
      },
      "persistent": {
        "strategy": "simple"
      }
    }
  3. 安装Python环境

  4. 在项目根目录打开cmd运行如下命令:

    pip install -r requirements.txt # 安装程序所需的库
  5. 直接打开main.py文件即可运行扫码登录