krash fix hopefuly (#105)

* Update KrashCommand.cs

add wager limit

* Update KasinoKrash.cs

* actual fix for payout

found the bug it was using the game multi instead of the bet multi

* Update KrashCommand.cs

remove wager limit

* actually fix the actual bug

fix the actual bug
This commit is contained in:
A Log in D Tractor
2026-04-09 17:51:47 -07:00
committed by GitHub
parent 64e318ce84
commit 354b1cfd99
2 changed files with 14 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public class KrashBetCommand : ICommand
GroupCollection arguments,
CancellationToken ctx)
{
return;
var cleanupDelay = TimeSpan.FromSeconds(10);
if (message is { IsWhisper: false, MessageUuid: not null })
@@ -62,6 +62,7 @@ public class KrashBetCommand : ICommand
multi = Convert.ToDecimal(multiGroup.Value);
}
wager = Convert.ToDecimal(amountGroup.Value);
//decimal wagerLimit = 10;
if (wager > gambler.Balance)
{
await botInstance.SendChatMessageAsync(
@@ -69,6 +70,14 @@ public class KrashBetCommand : ICommand
true, autoDeleteAfter: TimeSpan.FromSeconds(5));
return;
}
/*if (wager > wagerLimit)
{
await botInstance.SendChatMessageAsync(
$"{user.FormatUsername()}, you can't bet more than {wagerLimit} on krash during testing.",
true, autoDeleteAfter: TimeSpan.FromSeconds(5));
return;
}*/
if (botInstance.BotServices.KasinoKrash.TheGame == null)
{
//start a new game