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