Wager limit while mines is fucked

This commit is contained in:
barelyprofessional
2026-02-07 00:21:08 -06:00
parent 6c6ed8d09e
commit 54d989f64f

View File

@@ -92,6 +92,15 @@ public class MinesCommand : ICommand
$"{user.FormatUsername()}, your balance is too low. Balance: {gambler.Balance.FormatKasinoCurrencyAsync()}", true, autoDeleteAfter: cleanupDelay); $"{user.FormatUsername()}, your balance is too low. Balance: {gambler.Balance.FormatKasinoCurrencyAsync()}", true, autoDeleteAfter: cleanupDelay);
return; return;
} }
decimal wagerLimit = 10;
if (wager > wagerLimit)
{
await botInstance.SendChatMessageAsync(
$"{user.FormatUsername()}, mines is temporarily limited to wagers of {await wagerLimit.FormatKasinoCurrencyAsync()} during testing",
true, autoDeleteAfter: TimeSpan.FromSeconds(10));
return;
}
if (!arguments.TryGetValue("size", out var size) || !arguments.TryGetValue("mines", out var mines)) if (!arguments.TryGetValue("size", out var size) || !arguments.TryGetValue("mines", out var mines))
{ {
await botInstance.SendChatMessageAsync( await botInstance.SendChatMessageAsync(