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