From c7d98cc883fe71a8546a064b4d5a16b9b1755241 Mon Sep 17 00:00:00 2001 From: artificialbutter <59352535+artificialbutter@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:35:10 -0700 Subject: [PATCH] something with #34 from my iphone --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6865ba5..f021c9b 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,7 @@ client.on("ready", async () => { }); function shouldIReply(message) { - if (message.author.id == client.user.id) return false; + if (message.author.bot) return false; if (!message.content && !message.attachments) return false; if (Math.random() < process.env.REPLY_CHANCE && !channels.includes(message.channel.id) && !message.mentions.has(client.user.id)) return false; if (message.content.startsWith("!!")) return false;