1.0.4 • Published 3 years ago
easycommand v1.0.4
EasyCommand
EasyCommand is a discord.js package that has multiple features like ping, and economy. The goal of this package is to help people make commands easily without having to type a bunch of stuff.
Credits: Aidan The Sister#1714 || Main Developer CloudBud#9737 || Developer D.t 49#3500 || Developer net-tech-#0001 || Developer
How To Use EasyCommand
npm install easycommand
Usage
//An easy command setup this makes your bot faster because it reduces the amount on client.on functions
client.on('message', async message => {
if(!message.content.startsWith(prefix)) return
const args = message.content.slice(prefix.length).trim().split(' ')
const command = args.shift().toLowerCase()
if(command === 'ping') {
easy.all(message)
} else if(command === 'other command') {
easy.commandName(message or client, message)
}
})
Ping
.all(message) //shows both BotPing and APIping
.BotPing(message) //shows only the BotPing
.APIping(message) //shows only the APIping
Economy
.setup(client, message) //setup an economy account
.daily(client, message) //collect your daily coins
.balance(client, message) //see your coin balance
.work(client, message) //work to earn coins
Tickets
const ID = message.content.slice(9)
.category(message, ID) //set the category the ticket will open in
const reason = message.content.slice(7)
.new(message, reason, 'newTicket') //create a new ticekt
const args = message.content.slice(6)
const channel = message.mentions.channels.first() || message.guild.channels.cache.find(c => c.id == args || c.name == args) || message.channel
.close(message, chanel) //close the specified ticket channel
Fun
.bblwrap(message) //this is the default bubblewrap size
.custom1(message) //this is 5x5 bubblewrap
Change Log
4/17/2021 Changed something in the README file
4/26/2021 Added ticket commands and fun commands
5/15/2021 Updated the README.MD file