mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: filter empty message to avoid -60
This commit is contained in:
parent
75cf2e3523
commit
6ccf0fed7f
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ export class bym extends plugin {
|
||||||
}
|
}
|
||||||
let finalMsg = await convertFaces(t, true, e)
|
let finalMsg = await convertFaces(t, true, e)
|
||||||
logger.info(JSON.stringify(finalMsg))
|
logger.info(JSON.stringify(finalMsg))
|
||||||
finalMsg = finalMsg.map(filterResponseChunk)
|
finalMsg = finalMsg.map(filterResponseChunk).filter(i => !!i)
|
||||||
if (finalMsg) {
|
if (finalMsg) {
|
||||||
if (Math.floor(Math.random() * 100) < 10) {
|
if (Math.floor(Math.random() * 100) < 10) {
|
||||||
await this.reply(finalMsg, true, {
|
await this.reply(finalMsg, true, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue