discord.js bad word filter
// I DOUBT IF IT WORKS //
// COMPLICATED SCRIPT BY ME //
client.on('message', message => {
const FilteredWords = ["darn", "fuck", "bitch", "pussy", " ass", "nigga", "fucker", "fuk", "shit", "nigg", "dick", "cock", "fuk", "slut", "schmuck", "piss", "bollock", "effing", "prick", "frigger", "heck", "pennis", "dick", " cock", "screw you", "dweeb", "horny", "edgey", " sex", "faggot", "fag", "cunt"]
const ProfanityEmbed = new Discord.MessageEmbed()
.setColor('#b700ff')
.setTitle("Profanity is Not Allowed in This Server")
if (FilteredWords.some(w => `${message.content.toLowerCase()}`.includes(`${w}`))) {
message.delete()
message.channel.send(ProfanityEmbed)
.then(message => {
setTimeout(function() {
message.delete()
}, 5000);
})
}
}
}
Also in JavaScript:
- launch.json vscode electron
- javascript append to paragraph
- how to update react app
- crucer in js
- dataset js
- trim whitespace javascript
- oncheck checkbox javascript
- javascript close window
- how to create a component in react native
- remove backslash in json array javascript
- arrow function javascript
- react checkbox onChange
- discord.js send message to specific channel
- javascript return object in arrow function
- jquery add class
- javascript get div x y position
- js get file name from path
- empty array js
- javascript write to file
- smtpjs attachment
- get a div text content and store in a variable js
- nodejs btoa
- know if a mobile open the website js
- jquery copier dans le presse papier