From 942832735a07c65a6a0929ae63c37d1b8f86a9b0 Mon Sep 17 00:00:00 2001 From: Neko Life Date: Mon, 28 Jun 2021 18:48:38 +0900 Subject: [PATCH] u --- Main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Main.js b/Main.js index f386fa9..a41ce62 100644 --- a/Main.js +++ b/Main.js @@ -59,9 +59,9 @@ client.on("message", async msg => { if (!msg.author.dbLoaded && !msg.author.bot) await msg.author.dbLoad(); lgr.message.letsChat(msg); - if (msg.mentions.has(client.user) && !msg.isCommand && msg.cleanContent?.length > 0) { + if (msg.mentions.has(client.user) && !msg.isCommand) { const u = msg.cleanContent.replace(new RegExp(" ?<@!?" + client.user.id + ">"), "").trim(); - trySend(client, msg, await chatAnswer(u)); + if (u.length > 0) trySend(client, msg, await chatAnswer(u)); } if (!msg.guild) {