swearoo.js

1.2.0 • Public • Published

Swearoo.js

DOCUMENTATION: CLICK ME npm installnfo

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

Package Sidebar

Install

npm i swearoo.js

Weekly Downloads

2

Version

1.2.0

License

Apache License 2.0

Unpacked Size

33.9 kB

Total Files

4

Last publish

Collaborators

  • codeswithjames