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"; } }