Skip to content

Discord economy bot programmed in Discord.js using Node.js and SQLite

Snorfield/Discurrency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discurrency

Discurrency is a small discord bot meant to simulate an economy. It's written in Discord.js v14 using Node.js, and it uses SQLite for a database language.

Commands

/balance

Returns your current balance.

/pay <user> <amount>

Transfers <amount> to the user <user> if your balance has enough to allow the transfer.

/buy <id> [user]

Purchases the shop item with <id> if your balance has enough to allow the transfer. [user] is the user who has the product in their shop. It is optional, and only meant as a safeguard if you want to be sure that you are buying the correct product.

/leaderboard

Returns the top (up to ten) users sorted from most money to least money.

/shop <user>

Displays the shop of the specified <user>.

/create-product <product> <description> <price>

Creates a product for your shop if it doesn't exceed the maximum of eight products per user. <product> specifies the name of the product. <description> is the description for the product. <price> is the price the product costs.

/remove-product <id>

Removes the product with the specified <id> if the user running the command owns that product.

/edit-product <id> [product] [description] [price]

Edits the product with the specified <id> if the user owns the product. All arguments besides <id> are optional and if you don't input anything for them, it won't change anything.

/statistics

Minimal statistics for the economy. Includes total tokens transferred (whether by /pay or by /buy) and total purchases.

About

Discord economy bot programmed in Discord.js using Node.js and SQLite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published