From bf4ef3b3d42c9a7c3d7beab3588afd836dc3851e Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 21 Apr 2022 13:01:45 +0700 Subject: [PATCH] Fix embed numbers --- Bot/Games/SlotMachine.fs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bot/Games/SlotMachine.fs b/Bot/Games/SlotMachine.fs index a1b38bb..24b48d7 100644 --- a/Bot/Games/SlotMachine.fs +++ b/Bot/Games/SlotMachine.fs @@ -266,8 +266,9 @@ let spin multiplier (ctx : IDiscordContext) = embed.Author.IconUrl <- ctx.GetDiscordMember().AvatarUrl embed.Title <- "Slots Results" let addGBTField (embed : DiscordEmbedBuilder) prize = - let sym = if prize > 0 then "+" else "-" - embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank - playAmount} ⋙ `💰` {(player.Bank - playAmount) + prize} `({sym}{abs (prize - playAmount)} $GBT)`") |> ignore + if prize > 0 + then embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank - playAmount} ⋙ `💰` {player.Bank + prize} `(+{prize} $GBT)`") |> ignore + else embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank} ⋙ `💰` {player.Bank - prize} `(-{(prize)} $GBT)`") |> ignore let! result , prizeAmount = async { match prize with | Some (Money amount) ->