economy-for-discord

0.0.2 • Public • Published

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

FEEL FREE TO SUGGEST ANYTHING ON OUR SERVER : https://discord.gg/cV2ENjt

Package Sidebar

Install

npm i economy-for-discord

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

12.1 kB

Total Files

15

Last publish

Collaborators

  • ctk