1.0.1 • Published 4 years ago
djs-eco-tech v1.0.1
Installation
npm i djs-eco-tech
Usage
const eco = require('djs-eco-tech')
const economy = new eco(your mongo db path goes here)
economy.start() // to connect to mongo database
Methods
- start (connects to database)
- getData (userId, guildId) (gets the data of the user)
- addMoney (userId, guildId, amount) (add money to a user)
- removeMoney (userId, guildId, amount) (removes money of a user)
- dep (userId, GuildId, Amount) (deposit money to the bank)
- withdraw (userId, GuildId, amount) (withdraw money from the bank)
that's it enjoy more features on the way