Files
AstrBot/README.md
T
2022-12-08 18:44:19 +08:00

19 lines
639 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 基于OpenAI ChatGPT的QQ频道机器人
## 目前实现功能:
- 私信、@机器人都可以获得回复
- 以变量的形式临时保存了Session,具体原理为:将某一个用户id作为字典的key,value为该用户历史的input和chatGPT对该用户的output
## 待实现功能:
- 将Session持久化存储
- ...
## 使用方法:
首先你需要获得
- OpenAI的key [OpenAI](https://beta.openai.com/)
- QQ开放平台下QQ频道机器人的token和appid [QQ开放平台](https://q.qq.com/)
- 一个QQ频道机器人(很容易创建~
然后在configs/config.yaml下进行配置
然后启动main.py就行!