Fix embed numbers

This commit is contained in:
Joseph Ferano 2022-04-21 13:01:45 +07:00
parent 15c85ea33c
commit bf4ef3b3d4

View File

@ -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<GBT> then "+" else "-"
embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank - playAmount} `💰` {(player.Bank - playAmount) + prize} `({sym}{abs (prize - playAmount)} $GBT)`") |> ignore
if prize > 0<GBT>
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) ->