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