fix: 修复了一些已知问题

This commit is contained in:
Soulter
2023-01-09 18:55:15 +08:00
parent 406a08c4ed
commit 2dfcf423a9
3 changed files with 39 additions and 39 deletions
+1 -15
View File
@@ -1,24 +1,10 @@
import cores.qqbot.core as qqBot
from cores.openai.core import ChatGPT
import asyncio
import yaml
import threading
# 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__":
# qqbot_thread = threading.Thread(target=main)
# qqbot_thread.start()
main()
main()