make tag work without autoresponse

This commit is contained in:
Loïc Bersier 2019-07-08 23:09:29 +02:00
parent da2336036c
commit e0556346ff

View file

@ -40,6 +40,7 @@ class messageListener extends Listener {
}
}
}
// User autoresponse
const tag = await Tag.findOne({where: {trigger: message.content.toLowerCase(), serverID: message.guild.id}});
if (tag) {
@ -166,7 +167,6 @@ class messageListener extends Listener {
return message.channel.send(text);
}
}
}
}
module.exports = messageListener;