ignore messages from the discord bot itself

This commit is contained in:
BuckarooBanzay 2021-11-28 17:58:41 +01:00
parent 9af6386d48
commit 1a327b7f5e

View File

@ -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;
}