1.2.0 • Published 3 years ago

swearoo.js v1.2.0

Weekly downloads
33
License
Apache License 2....
Repository
-
Last release
3 years ago

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

1.2.0

3 years ago

1.1.9

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago