forked from Galactic/galactic-bot
bugfix to filter
This commit is contained in:
parent
9dcdfdc403
commit
cb5127049d
@ -15,7 +15,7 @@ class Commands extends SlashCommand {
|
||||
type: 'MODULE',
|
||||
description: ['List commands from a specific module']
|
||||
}],
|
||||
memberPermissions: ['ManageGuild'],
|
||||
memberPermissions: [],
|
||||
guildOnly: true
|
||||
});
|
||||
}
|
||||
|
@ -197,6 +197,8 @@ module.exports = class FilterUtility {
|
||||
//Zero width character (UTF-16 8206)
|
||||
content = content.replace(//gu, '');
|
||||
|
||||
content = content.replace(/['"‘’“”]/gu, '');
|
||||
|
||||
//Replace the weird letters with their normal text counterparts
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
const match = (/[a-z0-9\w\(\)\.\\\/\?!]+/gimu).exec(content);
|
||||
|
Loading…
Reference in New Issue
Block a user