1 Star 0 Fork 2

草帽小子 / QQChannelChatGPT

forked from Soulter / QQChannelChatGPT 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.py 539 Bytes
一键复制 编辑 原始数据 按行查看 历史
Soulter 提交于 2022-12-11 10:22 . fix:修复一些已知问题
import cores.qqbot.core as qqBot
from cores.openai.core import ChatGPT
import asyncio
import yaml
# from cores.database.conn import dbConn
def main():
# 读取参数
# with open('configs/config.yaml', 'r', encoding='utf-8') as f:
# cfg = yaml.safe_load(f)
# chatGPT_configs = cfg['openai']['chatGPTConfigs']
# print(chatGPT_configs)
#实例化ChatGPT
chatgpt = ChatGPT()
# db = dbConn()
# #执行qqBot
# qqBot.initBot(chatgpt, db)
qqBot.initBot(chatgpt)
if __name__ == "__main__":
main()
Python
1
https://gitee.com/zz0815/QQChannelChatGPT.git
git@gitee.com:zz0815/QQChannelChatGPT.git
zz0815
QQChannelChatGPT
QQChannelChatGPT
master

搜索帮助