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 // auto responses
if (message.guild) {
const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id, stat: 'enable'}}); const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id, stat: 'enable'}});
if (autoresponseStat) { if (autoresponseStat) {
// Infinit haha very yes // Infinit haha very yes
@ -291,6 +292,7 @@ class messageListener extends Listener {
} }
} }
} }
}
} }
module.exports = messageListener; module.exports = messageListener;