discord-antibadwords
v1.0.9
Published
Easy AnTi Bad Word
Downloads
10
Maintainers
Readme
Hi 👋
- Easy Anti Bad Word Pkg
Discord.js support
|Version| Support| |-------|--------| |v12 | ✔ | |v13 | ❌ |
- How To Install It In Your Project:?
npm install discord-antibadwords
- Basic Settings 🧢
const word = require('discord-antibadwords')
const antiword = new word({
prefix: "+",
client: client,
permissions: "MANAGE_GUILD",
addcmd: "add",
remove: "remove",
list: "list",
remove_all: "remove-all"
})
client.on('message', message => {
antiword.onMessage(message)
})
client.on('message', message => {
let data = db.get(`word_${message.guild.id}`)
if(data) {
let word = data.find(x => message.content.toLowerCase().includes(x.word.toLowerCase()))
if(word){
message.delete()
message.channel.send(`${message.author} Dont Say Bad Word`)
}
}
})
Notes 📝:
Make Sure You Have Install Quick.db
const db = require('quick.db')
Any Bug
Contact With Me Discord: B A D B O Y #8888
GitHub: https://github.com/BADBOY671/Easy-Anti-Bad-Word