From d3fdaaa4b3d6fd5f77c329e2bb858640050284bd Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 29 Mar 2023 23:52:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A9=BA=E8=81=8A=E5=A4=A9=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/history.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/history.js b/apps/history.js index bbc0bec..9f8e631 100644 --- a/apps/history.js +++ b/apps/history.js @@ -85,6 +85,10 @@ export class history extends plugin { break } } + if (chat.length === 0) { + await e.reply('无聊天记录', e.isGroup) + return true + } await e.reply(await render(e, 'chatgpt-plugin', 'content/History/index', { version: Config.version, user: {