Arrenged it a little

This commit is contained in:
Supositware 2019-03-02 20:15:09 +01:00
parent acf2aca52d
commit 9dee4389c4

View file

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