Files
AstrBot/main.py
T
Soulter 947f0564fe feat:
1. 拦截词拦截;
2. 新增多条指令:/继续 等;
3. 日志记录。
4. 移除了彩蛋。

perf:
1. 改善发送信息的稳定性。
2. 代码结构优化。
2023-01-07 13:16:03 +08:00

25 lines
637 B
Python

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()