mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 14:27:10 +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
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (chat.length === 0) {
|
||||||
|
await e.reply('无聊天记录', e.isGroup)
|
||||||
|
return true
|
||||||
|
}
|
||||||
await e.reply(await render(e, 'chatgpt-plugin', 'content/History/index', {
|
await e.reply(await render(e, 'chatgpt-plugin', 'content/History/index', {
|
||||||
version: Config.version,
|
version: Config.version,
|
||||||
user: {
|
user: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue