From 945e529fabef79263007bf9f93f1a4e83516ef16 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Wed, 29 Jan 2025 05:21:27 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E7=AE=80=E5=8C=96=E6=B6=88=E6=81=AF=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/groupAgent/agent.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/controller/groupAgent/agent.ts b/controller/groupAgent/agent.ts index 61741b7..b84dd60 100644 --- a/controller/groupAgent/agent.ts +++ b/controller/groupAgent/agent.ts @@ -36,11 +36,6 @@ const agent = async (ctx: Context) => { excludeMentions: [appInfo.appName], }) // 如果没有聊天记录,返回错误信息 - if (chatHistory.length === 0) { - logger.info("No chat history found") - await message.updateOrReply(cardGender.genErrorCard("未找到聊天记录")) - return - } logger.debug(`Chat history: ${JSON.stringify(chatHistory)}`) // 根据Mention,拼装原始消息