remove profanity check
This commit is contained in:
parent
5d2303e1cb
commit
1c94cf15b5
1 changed files with 13 additions and 13 deletions
26
index.ts
26
index.ts
|
@ -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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue