remove profanity check

This commit is contained in:
Ryan Cao 2022-05-21 21:31:17 +08:00
parent 5d2303e1cb
commit 1c94cf15b5
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F

View file

@ -2,7 +2,7 @@ import { Client, Intents } from 'discord.js';
import { commands, aliases } from './commands';
import * as BuildConfig from './constants';
import Filter from 'bad-words';
// import Filter from 'bad-words';
import { isBad } from './badLinks';
import { green, bold, blue, underline } from 'kleur/colors';
@ -69,19 +69,19 @@ client.once('ready', async () => {
return;
}
const profane = new Filter({ exclude: ['damn'] }).isProfane(e.content);
// const profane = new Filter({ exclude: ['damn'] }).isProfane(e.content);
if (profane) {
e.reply({
embeds: [
{
title: 'Profanity detected!',
description: 'Please try not to use these words 😄',
color: 'FUCHSIA',
},
],
});
}
// if (profane) {
// e.reply({
// embeds: [
// {
// title: 'Profanity detected!',
// description: 'Please try not to use these words 😄',
// color: 'FUCHSIA',
// },
// ],
// });
// }
{
const urlMatches = e.content.matchAll(urlRegex());