Skip to content

Commit

Permalink
fix: filter empty message to avoid -60
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jan 2, 2025
1 parent 6ccf0fe commit 802776c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/bym.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 802776c

Please sign in to comment.