discord-antibadwords

1.0.9 • Public • Published

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

Package Sidebar

Install

npm i discord-antibadwords

Weekly Downloads

2

Version

1.0.9

License

MIT

Unpacked Size

7.48 kB

Total Files

6

Last publish

Collaborators

  • badboy671