Updated new games so they have individual cleanup delays. Also extended timeouts for Wheel as it's prone to timing out

This commit is contained in:
barelyprofessional
2025-12-10 19:43:28 -06:00
parent 1463d991c1
commit 9ee114c466
4 changed files with 10 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ public class WheelCommand : ICommand
public string? HelpText =>
"Its wheel but oval shaped and shit";
public UserRight RequiredRight => UserRight.Loser;
public TimeSpan Timeout => TimeSpan.FromSeconds(12);
public TimeSpan Timeout => TimeSpan.FromSeconds(30);
public RateLimitOptionsModel? RateLimitOptions => new()
{
MaxInvocations = 3,
@@ -64,7 +64,7 @@ public class WheelCommand : ICommand
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
CancellationToken ctx)
{
var cleanupDelay = TimeSpan.FromMilliseconds((await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoGuessWhatNumberCleanupDelay)).ToType<int>());
var cleanupDelay = TimeSpan.FromMilliseconds((await SettingsProvider.GetValueAsync(BuiltIn.Keys.KasinoWheelCleanupDelay)).ToType<int>());
if (!arguments.TryGetValue("amount", out var amount))
{
await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, not enough arguments. !wheel <wager> <difficulty: low, medium, high>", true, autoDeleteAfter: cleanupDelay);