Error copy

This commit is contained in:
Joseph Ferano 2022-05-13 15:21:58 +07:00
parent 43f947145f
commit 231c559b1d

View File

@ -22,7 +22,10 @@ let checkHasSufficientFunds (item : Item) player =
| CanBuy price -> | CanBuy price ->
if player.Bank - price >= 0<GBT> if player.Bank - price >= 0<GBT>
then Ok player then Ok player
else Error $"You do not have sufficient funds to buy this item! Current balance: {player.Bank} GBT" else Error $"""
**__Current Balance:__** {player.Bank} 💰 $GBT
Hold up Degen! You don't have enough $GBT!
Go to <#{GuildEnvironment.channelQuests}> to start earning some now..."""
| _ -> Error $"{item.Name} item cannot be bought" | _ -> Error $"{item.Name} item cannot be bought"
let getTotalOwnedOfItem (item : Item) (inventory : Item list) = let getTotalOwnedOfItem (item : Item) (inventory : Item list) =