Skip to content

A useful and easy economy package for Discord Bot

Notifications You must be signed in to change notification settings

guiopqrs/easyconomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Easyconomy

Easyconomy is a Economy package for discord bots

  • Easy to use
  • fast support
  • Suitable for small - medium projects

Notes: Must have quick.db installed npm i quick.db

Usage

  • Balance
const economy = require("easyconomy")
const Economy = new economy()
client.on("message", async message => {
if(message.content.startsWith("balance")){
   let bal = await Economy.balance({
    userUserId: //User id
    userUsername: //User username
    userGuild: //User guild id
    })
    message.channel.send(bal.money)
    }
})
  • Work
const economy = require("easyconomy")
const Economy = new economy()
client.on("message", async message => {
if(message.content.startsWith("work")){
    let work = await Economy.work({
     userUserId: //User id
     userUsername: //User username
     userGuild: //user guild id
     workSalary: //Optional | work earnings
    })
    message.channel.send(work.money)
}
})
  • Add Money
const economy = require("easyconomy")
const Economy = new economy()
client.on("message", async message => {
if(message.content.startsWith("addmoney")){
    let addmoney = await Economy.addmoney({
     userUserId: //User id
     userUsername: //User username
     userGuild: //user guild id
     moneyAmount: //Amount of money you want to add
    })
    message.channel.send(addmoney.money)
}
})
  • Beg
const economy = require("easyconomy")
const Economy = new economy()
client.on("message", async message => {
let beg = await Economy.beg({
   userUserId: //User id
   userUsername: //User username
   userGuild: //User guild id
   moneyAmount: //Optional | Amount
    })
    message.channel.send(beg.money)
}
})
  • Daily
const economy = require("easyconomy")
const Economy = new economy()
client.on("message", async message => {
if(message.content.startsWith("daily")) {
let daily = await Economy.daily({
    userUserId: //User id
    userUsername: //User username
    userGuild: //User Guil id
    moneyAmount: //Optional | Amount
    })
    message.channel.send(daily.money)
}
})

Installing

npm install easyconomy

Support

Updates

v1.0.0:

  • Added Balance, Addmoney, Work

v1.0.1:

  • Bug Fixes

1.1.0:

  • Added Beg

1.1.1:

  • Bug Fixes

1.2.0:

  • Bug Fixes
  • Added Daily
  • Added EconomyManager Class

About

A useful and easy economy package for Discord Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published