mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 空聊天记录的bug
This commit is contained in:
parent
fbfd105e0d
commit
d3fdaaa4b3
1 changed files with 4 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue