economy-for-discord
v0.0.2
Published
This package will let you create economy commands in the blink of an eye.
Downloads
9
Maintainers
Readme
ECONOMY FOR DISCORD
This will pcakage will let you make your economy commands in a seconds
[ MAKE SURE TO INSTALL]
npm i quick.db
npm i parse-ms
USAGE
const eco = require("economy-for-discord");
const discord = require("discord.js");
const client = new discord.Client();
client.on("ready", () => {
console.log("You are ready to go: " + Date());
});
let prefix = "!";
client.on("message", message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content
.slice(prefix.length)
.trim()
.split(" ");
const command = args.shift().toLowerCase();
if (command === "balance") {
return eco.balance(message, args[0] || null);
} else if (command === "work") {
return eco.work(message);
} else if (command === "pay") {
return eco.pay(message, args[1] || null);
} else if (command === "daily") {
return eco.daily(message);
} else if (command === "beg") {
return eco.beg(message);
} else if (command === "lb") {
return eco.leaderboard(message);
}
});
client.login("TOKEN");
UPCOMING :)
- Profile
- Rob
- Add/Remove Money (Admin only)
- Shop System