chatbot for QQ with openai api
- a linux host server
- an openai api key
- an extra qq acount
- python3
- Clone the code from github
git clone https://github.com/AndyKong2020/QQchatbot.git
- Install python requirements
cd ~/QQchatbot/py
pip3 install -r requirements.txt
- Install cqhttp environment
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
When be ask to choose, input 1. - Parameter Configurations
InQQchatbot/py/config.json
, fill in your api-key, bot's qq id and your qq id.
InQQchatbot/QBot/config.yml
, fill in bot's qq id and password. - Launch the program
Inputpython py/QBot.py
in one terminal.
Inputcd QBot
./go-cqhttp
in another terminal. When asked to choose, input 2, then scan the QRcode with bot's qq.