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).
After a user checks the available goods in the shop with the
/shopcommand, 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
/shopcommand below the 'not enough money' warning.This will also require an
inventorytable (and maybe aninventory-logtable alongside that).