Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 authored Feb 16, 2023
1 parent 18a1ad8 commit fc98996
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

# # 新会话
Expand Down Expand Up @@ -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()
app.launch_blocking()

0 comments on commit fc98996

Please sign in to comment.