mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-08 23:22:03 -04:00
Create a separate setting for blackjack cleanup
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user