Fix it again

This commit is contained in:
Joseph Ferano 2022-04-21 13:17:35 +07:00
parent 4103b48483
commit 2cf39cd47a

View File

@ -267,7 +267,7 @@ let spin multiplier (ctx : IDiscordContext) =
embed.Title <- "Slots Results"
let addGBTField (embed : DiscordEmbedBuilder) prize =
if prize > 0<GBT>
then embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank - playAmount} `💰` {player.Bank + prize} `(+{prize} $GBT)`") |> ignore
then embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank - playAmount} `💰` {player.Bank - playAmount + prize} `(+{prize - playAmount} $GBT)`") |> ignore
else embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank} `💰` {player.Bank - prize} `(-{(prize)} $GBT)`") |> ignore
let! result , prizeAmount = async {
match prize with