From e1834148361fcd916fe9679e31978c30fbc7057b Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 2 Jan 2026 19:00:31 -0600 Subject: [PATCH] Removed shitty error handler --- .../Commands/Kasino/BlackjackCommand.cs | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs b/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs index c274603..be0412e 100644 --- a/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs @@ -43,23 +43,14 @@ public class BlackjackCommand : ICommand var cleanupDelay = TimeSpan.FromMilliseconds( (await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoDiceCleanupDelay)).ToType()); - try + // Check if this is a new game or continuing existing game + if (arguments.TryGetValue("amount", out var amountGroup)) { - // Check if this is a new game or continuing existing game - if (arguments.TryGetValue("amount", out var amountGroup)) - { - await StartNewGame(botInstance, user, amountGroup.Value, cleanupDelay, ctx); - } - else if (arguments.TryGetValue("action", out var actionGroup)) - { - await ContinueGame(botInstance, user, actionGroup.Value.ToLower(), cleanupDelay, ctx); - } + await StartNewGame(botInstance, user, amountGroup.Value, cleanupDelay, ctx); } - catch (Exception ex) - { - await botInstance.SendChatMessageAsync( - $"[DEBUG] Blackjack error for {user.FormatUsername()}: {ex.Message}", true); - throw; + else if (arguments.TryGetValue("action", out var actionGroup)) + { + await ContinueGame(botInstance, user, actionGroup.Value.ToLower(), cleanupDelay, ctx); } }