mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-15 02:22:43 -04:00
Create a separate setting for blackjack cleanup
This commit is contained in:
@@ -41,7 +41,7 @@ public class BlackjackCommand : ICommand
|
|||||||
CancellationToken ctx)
|
CancellationToken ctx)
|
||||||
{
|
{
|
||||||
var cleanupDelay = TimeSpan.FromMilliseconds(
|
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
|
// 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))
|
||||||
|
|||||||
@@ -463,6 +463,8 @@ public static class BuiltIn
|
|||||||
public static string ZiplineKey = "Zipline.Key";
|
public static string ZiplineKey = "Zipline.Key";
|
||||||
[BuiltInSetting("Base URL for Zipline", SettingValueType.Text, defaultValue: "https://i.ddos.lgbt")]
|
[BuiltInSetting("Base URL for Zipline", SettingValueType.Text, defaultValue: "https://i.ddos.lgbt")]
|
||||||
public static string ZiplineUrl = "Zipline.Url";
|
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