From 2a868860f71b4f7ae251417812145dfed9aba234 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 29 Jan 2017 15:50:10 -0500 Subject: [PATCH] Check if bot before executing triggers. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index da15354..9dcf528 100644 --- a/server.js +++ b/server.js @@ -90,7 +90,7 @@ client.on('message', message => { } else { // Not a valid command. } - } else { + } else if (message.author.bot == false) { // This is a normal channel message. cachedTriggers.forEach(function(trigger) { if (trigger.roles == undefined || findArray(message.member.roles.map(function(x) { return x.name; }), trigger.roles)) {