fix: 空聊天记录的bug

This commit is contained in:
ikechan8370 2023-03-29 23:52:55 +08:00
parent fbfd105e0d
commit d3fdaaa4b3

View file

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