mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Usability shit for roulette
This commit is contained in:
@@ -229,7 +229,10 @@ public class RouletteCommand : ICommand
|
||||
if (isFirstBet)
|
||||
{
|
||||
_ = 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)
|
||||
@@ -826,7 +829,9 @@ public class RouletteCommand : ICommand
|
||||
private string GetNumberColor(int number)
|
||||
{
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user