swearoo.js
v1.2.0
Published
Filter swear words out!
Downloads
18
Maintainers
Readme
Swearoo.js
DOCUMENTATION: CLICK ME
UPDATE LOG 1.0.0!
Added 4 new languages! Swedish Belarus Persian And Chinese We Currently Have 5 languages!
UPCOMING UPDATE!
Yarn!
Add the Swearoo.js Module in your bot to filter every swear word out.
Install
npm install swearoo.js
Example
const Discord = require('discord.js') //discord.js
const client = new Discord.Client(); //discord client
const swearoo = require("swearoo.js") //require my module
// console log when ready
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`)
})
// Module Setup
client.on('message', async message => {
swearoo(client, message, {
warnMSG: `<@${message.author.id}> , why are you writing this?`,
// warn message option || when not then = `<@${message.author.id}> dont use swear words.`
// Behind the warnMSG will be an Warn Count
ignoreWord: ["ignoreThis", "andIgnoreThis", "alsoIgnoreThis"],
customWord: ["aCustomWord", "anOtherCustomWord"],
muteRole: "ROLE NAME", // ID of the Role
muteCount: 10, // Number when the user get muted
kickCount: 20, // Number when the user get kicked
banCount: 30, // Number when the user get banned
});
});
// Client Login
client.login('token')
Support
Join the support server: CLICK ME