From d7c1dad4f0c2c505b439e66a59aba4a5417f9211 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 27 Jul 2022 06:53:16 +0200 Subject: [PATCH] Check for updates should run once per hour, not every 15 seconds --- .../Modules/Administration/Self/CheckForUpdatesService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/Self/CheckForUpdatesService.cs b/src/NadekoBot/Modules/Administration/Self/CheckForUpdatesService.cs index e0622bd1e..0b6b8387e 100644 --- a/src/NadekoBot/Modules/Administration/Self/CheckForUpdatesService.cs +++ b/src/NadekoBot/Modules/Administration/Self/CheckForUpdatesService.cs @@ -27,7 +27,7 @@ public sealed class CheckForUpdatesService : INService, IReadyExecutor if (_client.ShardId != 0) return; - using var timer = new PeriodicTimer(TimeSpan.FromSeconds(15)); + using var timer = new PeriodicTimer(TimeSpan.FromHours(1)); while (await timer.WaitForNextTickAsync()) { var conf = _bcs.Data;