From 9dee4389c4598899e6880b68233dcd9d0c0a44c3 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sat, 2 Mar 2019 20:15:09 +0100 Subject: [PATCH] Arrenged it a little --- event/listeners/message.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/event/listeners/message.js b/event/listeners/message.js index 71f3da6e..01dcd165 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -14,11 +14,10 @@ class messageListener extends Listener { }); } - async exec(message) { - let autoresponse = reload('../../json/autoresponse.json'); - let message_content = message.content.toLowerCase(); - + async exec(message) { if (message.author.bot) return; { + let autoresponse = reload('../../json/autoresponse.json'); + let message_content = message.content.toLowerCase(); // If autoresponse is enable send the response if(autoresponse[message.channel.id] == 'enable') {