Usability shit for roulette

This commit is contained in:
barelyprofessional
2026-02-06 23:40:57 -06:00
parent daba3012a4
commit dd469c36b3

View File

@@ -229,7 +229,10 @@ public class RouletteCommand : ICommand
if (isFirstBet) if (isFirstBet)
{ {
_ = Task.Run(async () => await RunCountdown(botInstance, countdownDuration), CancellationToken.None); _ = Task.Run(async () => await RunCountdown(botInstance, countdownDuration), CancellationToken.None);
return;
} }
await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, your bet has been accepted", true, autoDeleteAfter: TimeSpan.FromSeconds(10));
} }
private async Task RunCountdown(ChatBot botInstance, TimeSpan countdownDuration) private async Task RunCountdown(ChatBot botInstance, TimeSpan countdownDuration)
@@ -826,7 +829,9 @@ public class RouletteCommand : ICommand
private string GetNumberColor(int number) private string GetNumberColor(int number)
{ {
if (number == 0) return "GREEN"; if (number == 0) return "GREEN";
return RedNumbers.Contains(number) ? "RED" : "BLACK"; if (RedNumbers.Contains(number)) return "RED";
if (BlackNumbers.Contains(number)) return "BLACK";
return "???";
} }
private async Task<RouletteRound?> GetRound() private async Task<RouletteRound?> GetRound()