From 0df1c3877e256b9658331ceff6a22d5f08429596 Mon Sep 17 00:00:00 2001 From: Robert R Date: Thu, 23 Mar 2023 09:36:38 -0400 Subject: [PATCH] hotfix for schedule to not get the bot locked out --- TimeZoneBot/DiscordBot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TimeZoneBot/DiscordBot.cs b/TimeZoneBot/DiscordBot.cs index 96cb14d..424a035 100644 --- a/TimeZoneBot/DiscordBot.cs +++ b/TimeZoneBot/DiscordBot.cs @@ -69,7 +69,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) private async Task SetUpSchedules(CancellationToken stoppingToken) { // birthday timer setup - using var timer = new CronTimer("*/1 * * * *", TimeZoneInfo.Local); + using var timer = new CronTimer("1 * * * *", TimeZoneInfo.Local); while (await timer.WaitForNextTickAsync(stoppingToken)) {