0.0.2 • Published 4 years ago

economy-for-discord v0.0.2

Weekly downloads
4
License
MIT
Repository
-
Last release
4 years ago

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