mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Removed shitty error handler
This commit is contained in:
@@ -43,8 +43,6 @@ public class BlackjackCommand : ICommand
|
|||||||
var cleanupDelay = TimeSpan.FromMilliseconds(
|
var cleanupDelay = TimeSpan.FromMilliseconds(
|
||||||
(await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoDiceCleanupDelay)).ToType<int>());
|
(await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoDiceCleanupDelay)).ToType<int>());
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Check if this is a new game or continuing existing game
|
// Check if this is a new game or continuing existing game
|
||||||
if (arguments.TryGetValue("amount", out var amountGroup))
|
if (arguments.TryGetValue("amount", out var amountGroup))
|
||||||
{
|
{
|
||||||
@@ -55,13 +53,6 @@ public class BlackjackCommand : ICommand
|
|||||||
await ContinueGame(botInstance, user, actionGroup.Value.ToLower(), cleanupDelay, ctx);
|
await ContinueGame(botInstance, user, actionGroup.Value.ToLower(), cleanupDelay, ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
await botInstance.SendChatMessageAsync(
|
|
||||||
$"[DEBUG] Blackjack error for {user.FormatUsername()}: {ex.Message}", true);
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private async Task StartNewGame(ChatBot botInstance, UserDbModel user, string amountStr,
|
private async Task StartNewGame(ChatBot botInstance, UserDbModel user, string amountStr,
|
||||||
|
|||||||
Reference in New Issue
Block a user