wabbit-js
v1.6.0
Published
wabbit package helps you to create your bot's easier
Downloads
10
Maintainers
Readme
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