This commit is contained in:
Kwoth
2023-03-10 01:14:30 +01:00
8 changed files with 48 additions and 52 deletions

View File

@@ -60,6 +60,7 @@ public class CommandHandler : INService, IReadyExecutor
public async Task OnReadyAsync()
{
Log.Information("Command handler runnning on ready");
// clear users on short cooldown every GLOBAL_COMMANDS_COOLDOWN miliseconds
using var timer = new PeriodicTimer(TimeSpan.FromMilliseconds(GLOBAL_COMMANDS_COOLDOWN));
while (await timer.WaitForNextTickAsync())