From fc98996c1d143be6a35db2803a0d5756f3ecb323 Mon Sep 17 00:00:00 2001 From: Dark Litss Date: Thu, 16 Feb 2023 08:49:09 +0800 Subject: [PATCH] Update bot.py --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index b8c80022..f3a2cf14 100644 --- a/bot.py +++ b/bot.py @@ -75,7 +75,6 @@ async def handle_message(target: Union[Friend, Group], session_id: str, message: # 重置会话 if message.strip() in config.trigger.reset_command: session.reset_conversation() - await chatbot.initial_process(session) return config.response.reset # # 新会话 @@ -143,4 +142,4 @@ async def start_background(loop: asyncio.AbstractEventLoop): exit(-1) logger.info("OpenAI 服务器登录成功") logger.info("尝试从 Mirai 服务中读取机器人 QQ 的 session key……") -app.launch_blocking() \ No newline at end of file +app.launch_blocking()