diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d3bf63..c5e7c40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v2.14.1 +* Don't alert for main server pings if the pinger is a bot + ## v2.14.0 * Changed `requiredAccountAge` to be in hours instead of days diff --git a/src/main.js b/src/main.js index 8b58881..01c4517 100644 --- a/src/main.js +++ b/src/main.js @@ -146,6 +146,7 @@ bot.on('messageDelete', async msg => { bot.on('messageCreate', async msg => { if (! utils.messageIsOnMainServer(msg)) return; if (! msg.mentions.some(user => user.id === bot.user.id)) return; + if (msg.author.bot) return; // If the person who mentioned the modmail bot is also on the modmail server, ignore them if (utils.getInboxGuild().members.get(msg.author.id)) return;