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: {