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') {