Skip to content

AndyKong2020/QQchatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

chatbot for QQ with openai api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages