Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 861 Bytes

README.md

File metadata and controls

22 lines (22 loc) · 861 Bytes

QQchatbot

chatbot for QQ with openai api

Requirements

  1. a linux host server
  2. an openai api key
  3. an extra qq acount
  4. python3

Quik Start

  1. Clone the code from github
    git clone https://github.com/AndyKong2020/QQchatbot.git
  2. Install python requirements
    cd ~/QQchatbot/py
    pip3 install -r requirements.txt
  3. Install cqhttp environment curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    When be ask to choose, input 1.
  4. Parameter Configurations
    In QQchatbot/py/config.json, fill in your api-key, bot's qq id and your qq id.
    In QQchatbot/QBot/config.yml, fill in bot's qq id and password.
  5. Launch the program
    Input python py/QBot.pyin one terminal.
    Input cd QBot ./go-cqhttpin another terminal. When asked to choose, input 2, then scan the QRcode with bot's qq.