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;