From 1a327b7f5e704146f255314ced9f34b973c22a12 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sun, 28 Nov 2021 17:58:41 +0100 Subject: [PATCH] ignore messages from the discord bot itself --- src/handler/discord.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handler/discord.js b/src/handler/discord.js index 5934103..a911d6a 100644 --- a/src/handler/discord.js +++ b/src/handler/discord.js @@ -100,8 +100,8 @@ module.exports = class { }); this.client.on('message', msg => { - if (msg.author.bot){ - // ignore other bots + if (msg.author.bot.tag == this.client.user.tag){ + // ignore myself return; }