forked from Supositware/Haha-Yes
Fixed some errors
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
4f1f672d32
commit
744a476e91
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ class messageListener extends Listener {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Banned words
|
// Banned words
|
||||||
let bannedWords;
|
let bannedWords = [];
|
||||||
let whitelistWord;
|
let whitelistWord = [];
|
||||||
if (message.guild) {
|
if (message.guild) {
|
||||||
bannedWords = await BannedWords.findAll({where: {word: Sequelize.where(Sequelize.fn('LOCATE', Sequelize.col('word'), message.content.replace(/\u200B/g, '').replace(/[\u0250-\ue007]/g, '')), Sequelize.Op.ne, 0), serverID: message.guild.id}});
|
bannedWords = await BannedWords.findAll({where: {word: Sequelize.where(Sequelize.fn('LOCATE', Sequelize.col('word'), message.content.replace(/\u200B/g, '').replace(/[\u0250-\ue007]/g, '')), Sequelize.Op.ne, 0), serverID: message.guild.id}});
|
||||||
whitelistWord = await WhitelistWord.findAll({where: {word: Sequelize.where(Sequelize.fn('LOCATE', Sequelize.col('word'), message.content.replace(/\u200B/g, '').replace(/[\u0250-\ue007]/g, '')), Sequelize.Op.ne, 0), serverID: message.guild.id}});
|
whitelistWord = await WhitelistWord.findAll({where: {word: Sequelize.where(Sequelize.fn('LOCATE', Sequelize.col('word'), message.content.replace(/\u200B/g, '').replace(/[\u0250-\ue007]/g, '')), Sequelize.Op.ne, 0), serverID: message.guild.id}});
|
||||||
|
|
Loading…
Reference in a new issue