moved thing to if message.guild

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-09-04 18:55:04 +02:00
parent 744a476e91
commit 7a37e749be

View file

@ -81,6 +81,7 @@ class messageListener extends Listener {
*/
// auto responses
if (message.guild) {
const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id, stat: 'enable'}});
if (autoresponseStat) {
// Infinit haha very yes
@ -292,5 +293,6 @@ class messageListener extends Listener {
}
}
}
}
module.exports = messageListener;