Create a separate setting for blackjack cleanup

This commit is contained in:
barelyprofessional
2026-01-02 19:02:04 -06:00
parent e183414836
commit fcd057e980
2 changed files with 3 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ public class BlackjackCommand : ICommand
CancellationToken ctx)
{
var cleanupDelay = TimeSpan.FromMilliseconds(
(await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoDiceCleanupDelay)).ToType<int>());
(await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoBlackjackCleanupDelay)).ToType<int>());
// Check if this is a new game or continuing existing game
if (arguments.TryGetValue("amount", out var amountGroup))

View File

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