1.0.9 โ€ข Published 3 years ago

discord-antibadwords v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Hi ๐Ÿ‘‹

  • Easy Anti Bad Word Pkg

Discord.js support

VersionSupport
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