This works
This commit is contained in:
		
							parent
							
								
									d9d9f993fa
								
							
						
					
					
						commit
						08bdcdd7c6
					
				| @ -267,8 +267,8 @@ let spin multiplier (ctx : IDiscordContext) = | |||||||
|         embed.Title <- "Slots Results" |         embed.Title <- "Slots Results" | ||||||
|         let addGBTField (embed : DiscordEmbedBuilder) prize = |         let addGBTField (embed : DiscordEmbedBuilder) prize = | ||||||
|             if prize > 0<GBT> |             if prize > 0<GBT> | ||||||
|                 then embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank - playAmount} ⋙ `💰` {player.Bank - playAmount + prize} `(+{prize - playAmount} $GBT)`") |> ignore |                 then embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank} ⋙ `💰` {player.Bank - playAmount + prize} `(+{prize - playAmount} $GBT)`") |> ignore | ||||||
|                 else embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank} ⋙ `💰` {player.Bank - prize} `(-{(prize)} $GBT)`") |> ignore |                 else embed.AddField("New 💰$GBT Balance", $"`💰` {player.Bank} ⋙ `💰` {player.Bank + prize} `({prize} $GBT)`") |> ignore | ||||||
|         let! result , prizeAmount = async { |         let! result , prizeAmount = async { | ||||||
|             match prize with |             match prize with | ||||||
|             | Some (Money amount) -> |             | Some (Money amount) -> | ||||||
| @ -277,7 +277,7 @@ let spin multiplier (ctx : IDiscordContext) = | |||||||
|                 embed.Color <- DiscordColor.Green |                 embed.Color <- DiscordColor.Green | ||||||
|                 embed.Description <- $"You WIN `💰` **{prizeWithMultiplier}** GBT 🎉" |                 embed.Description <- $"You WIN `💰` **{prizeWithMultiplier}** GBT 🎉" | ||||||
|                 embed.AddField("Bet", $"{playAmount}", true) |> ignore |                 embed.AddField("Bet", $"{playAmount}", true) |> ignore | ||||||
|                 embed.AddField("Prize", $"{prizeWithMultiplier}") |> ignore |                 embed.AddField("Prize", $"{prizeWithMultiplier}", true) |> ignore | ||||||
|                 addGBTField embed prizeWithMultiplier |                 addGBTField embed prizeWithMultiplier | ||||||
|                 return "WON" , prizeWithMultiplier |                 return "WON" , prizeWithMultiplier | ||||||
|             | Some (Jackpot) -> |             | Some (Jackpot) -> | ||||||
| @ -285,7 +285,7 @@ let spin multiplier (ctx : IDiscordContext) = | |||||||
|                 embed.Color <- DiscordColor.Green |                 embed.Color <- DiscordColor.Green | ||||||
|                 embed.Description <- $"🎉🎉 YOU HIT THE JACKPOT 🎉🎉" |                 embed.Description <- $"🎉🎉 YOU HIT THE JACKPOT 🎉🎉" | ||||||
|                 embed.AddField("Bet", $"{playAmount}", true) |> ignore |                 embed.AddField("Bet", $"{playAmount}", true) |> ignore | ||||||
|                 embed.AddField("Prize", $"{jackpot}") |> ignore |                 embed.AddField("Prize", $"{jackpot}", true) |> ignore | ||||||
|                 addGBTField embed jackpot |                 addGBTField embed jackpot | ||||||
|                 do! DbService.updatePlayerCurrency jackpot player |> Async.Ignore |                 do! DbService.updatePlayerCurrency jackpot player |> Async.Ignore | ||||||
|                 do! resetJackpot BaseJackpotAmount |> Async.Ignore |                 do! resetJackpot BaseJackpotAmount |> Async.Ignore | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user