From fcd057e980d56fd72546b7b50e27c6e8baa349e4 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 2 Jan 2026 19:02:04 -0600 Subject: [PATCH] Create a separate setting for blackjack cleanup --- KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs | 2 +- KfChatDotNetBot/Settings/BuiltIn.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs b/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs index be0412e..5f0f01f 100644 --- a/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/BlackjackCommand.cs @@ -41,7 +41,7 @@ public class BlackjackCommand : ICommand CancellationToken ctx) { var cleanupDelay = TimeSpan.FromMilliseconds( - (await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoDiceCleanupDelay)).ToType()); + (await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoBlackjackCleanupDelay)).ToType()); // Check if this is a new game or continuing existing game if (arguments.TryGetValue("amount", out var amountGroup)) diff --git a/KfChatDotNetBot/Settings/BuiltIn.cs b/KfChatDotNetBot/Settings/BuiltIn.cs index 4983312..f48447f 100644 --- a/KfChatDotNetBot/Settings/BuiltIn.cs +++ b/KfChatDotNetBot/Settings/BuiltIn.cs @@ -463,6 +463,8 @@ public static class BuiltIn public static string ZiplineKey = "Zipline.Key"; [BuiltInSetting("Base URL for Zipline", SettingValueType.Text, defaultValue: "https://i.ddos.lgbt")] public static string ZiplineUrl = "Zipline.Url"; + [BuiltInSetting("Delay in milliseconds before cleaning up blackjack", SettingValueType.Text, "20000", WholeNumberRegex)] + public static string KasinoBlackjackCleanupDelay = "Kasino.Blackjack.CleanupDelay"; } }