forked from Supositware/Haha-Yes
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
|
// 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
|
||||||
|
@ -292,5 +293,6 @@ class messageListener extends Listener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = messageListener;
|
module.exports = messageListener;
|
Loading…
Reference in a new issue