Changed auto deletions to a background task running in the bot itself to hopefully make them reliable

This commit is contained in:
barelyprofessional
2025-10-12 12:54:23 -05:00
parent c990247bb6
commit 99f5421736
2 changed files with 58 additions and 18 deletions

View File

@@ -1115,6 +1115,14 @@ public static class BuiltIn
Default = "60000",
ValueType = SettingValueType.Text,
Regex = WholeNumberRegex
},
new BuiltInSettingsModel
{
Key = Keys.BotScheduledDeletionInterval,
Description = "Delay in milliseconds between each check to see whether there's messages to be deleted",
Default = "1000",
ValueType = SettingValueType.Text,
Regex = WholeNumberRegex
}
];
@@ -1244,5 +1252,6 @@ public static class BuiltIn
public static string KasinoGuessWhatNumberCleanupDelay = "Kasino.GuessWhatNumber.CleanupDelay";
public static string KasinoKenoCleanupDelay = "Kasino.Keno.CleanupDelay";
public static string KasinoPlanesCleanupDelay = "Kasino.Planes.CleanupDelay";
public static string BotScheduledDeletionInterval = "Bot.ScheduledDeletionInterval";
}
}