Skip to content

New command: /buy (economy) #43

@vb2007

Description

@vb2007

After a user checks the available goods in the shop with the /shop command, it could buy anything from there with this command.

It will have one parameter:

  • product: a product, that the user will buy.

If a user has enough money on them, the bot should first remove the price from the user's balance, then add an item to it's inventory.

If the user doesn't has enough money for the product, the bot should suggest using the /shop command below the 'not enough money' warning.

This will also require an inventory table (and maybe an inventory-log table alongside that).

Metadata

Metadata

Assignees

Labels

new commandNew /slash command request

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions