1.0.3 • Published 3 years ago

@kuroxi/economy-mongo v1.0.3

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

Setup

Importing Package

const Economy = require('@kuroxi/economy-mongo')
Economy.MongoPath('mongodb+srv://...')

Fetch User

await Economy.fetch(<User.ID - String>, <Guild.ID - String>)
  • Output
Object | Boolean

Create User

await Economy.createUser(<User.ID - String>, <Guild.ID - String>)
  • Output
Object | Boolean

Delete User

await Economy.deleteUser(<User.ID - String>, <Guild.ID - String>)
  • Output
Object | Boolean

Delete Guild

await Economy.deleteGuild(<Guild.ID - String>)
  • Output
Object | Boolean

Leaderboard

await Economy.leaderboard(<"MONEY" | "BANK">, <Guild.ID - String>)
  • Output
Object | Boolean

Add

await Economy.addMoney(<User.ID - String>, <Guild.ID - String>, <Amount - Integer>)
  • Output
Object | Boolean

Subtract

await Economy.subtractMoney(<User.ID - String>, <Guild.ID - String>, <Amount - Integer>)
  • Output
Object | Boolean

Set

await Economy.setMoney(<User.ID - String>, <Guild.ID - String>, <Amount - Integer>)
  • Output
Object | Boolean

Add

await Economy.addBank(<User.ID - String>, <Guild.ID - String>, <Amount - Integer>)
  • Output
Object | Boolean

Subtract

await Economy.subtractBank(<User.ID - String>, <Guild.ID - String>, <Amount - Integer>)
  • Output
Object | Boolean

Set

await Economy.setBank(<User.ID - String>, <Guild.ID - String>, <Amount - Integer>)
  • Output
Object | Boolean
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago