mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
修复了ai功能关闭情况下回复慢的BUG
This commit is contained in:
parent
6b0edddbfb
commit
4bd822817a
1 changed files with 2 additions and 1 deletions
|
|
@ -23,8 +23,9 @@ with open(os.getcwd() +'/src/ai_chat/config/chat_ai.yaml', 'r', encoding='utf-8'
|
|||
check = on_message(rule=to_me() & rule ,block=True)
|
||||
@check.handle()
|
||||
async def check(bot: Bot, event: Event):
|
||||
msg = ai_chat.deepseek_chat(event.get_plaintext())
|
||||
|
||||
if is_ai == "True":
|
||||
msg = ai_chat.deepseek_chat(event.get_plaintext())
|
||||
await bot.send(message=msg,event=event)
|
||||
else:
|
||||
await bot.send(message=Message(random.choice(text_list)),event=event)
|
||||
|
|
|
|||
Loading…
Reference in a new issue