moved thing to if message.guild
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
744a476e91
commit
7a37e749be
1 changed files with 177 additions and 175 deletions
|
@ -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
|
||||
|
@ -291,6 +292,7 @@ class messageListener extends Listener {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = messageListener;
|
Loading…
Reference in a new issue