1.6.0 • Published 3 years ago

wabbit-js v1.6.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Hello there , 👋

Installing

npm i wabbit-js

Example of usage

Example

const wabbit = require("wabbit-js")  // defined wabbit
const client = wabbit.client // defined client
wabbit.login('token')
wabbit.voiceConnect('channelid') // connect to voice channel when you run script
wabbit.autorole('roleid') // gives member role when joined into your server
wabbit.status('status') // choose your bot activity
wabbit.welcomer('channel','text') // make custom welcomer for server

Moderation

Example

const client = wabbit.client
wabbit.login('token')
const prefix = "!"; 
client.on("message", async message => {
    if(message.author.bot)return;
    if(message.channel.type == "dm")return;
    if(!message.content.startsWith(prefix))return;

    const args = message.content.slice(prefix.length).trim().split(" ");
    const command = args.shift().toLowerCase()
    if(command === "test"){
        wabbit.mod.kick('userid','guildid') // kick member
        wabbit.mod.ban('userid','guildid') // ban member
        wabbit.mod.unban('userid','guildid') // unban member
        wabbit.mod.mute('userid','guildid') // mute member
        wabbit.mod.unmute('userid','guildid') // unmute member
        wabbit.mod.deafen('userid','guildid') // deafen member
        wabbit.mod.undeafen('userid','guildid') // undeafen member
    }
});

coming soon

Support


Developed With ♥ by Kermit Xaro

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.5.9

3 years ago

1.5.6

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago