From d4b79e693cee031c537a6b9486232b0b6fdfdb9a Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Mohammadi Date: Thu, 31 Oct 2024 15:42:11 +0330 Subject: [PATCH] Removed prev commit code due to incomatiblity with systemd --- Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 1dbe81a..785f7d1 100755 --- a/Program.cs +++ b/Program.cs @@ -87,8 +87,7 @@ public class MastodonBot _timer = new Timer(async _ => await RunCheck.runAsync(db, bot, config.TAG, logger, config.INSTANCE), null, TimeSpan.Zero, TimeSpan.FromMinutes(15)); // Another timer to automatically backup the DB every 1 hour _timer = new Timer(async _ => await HandleDbBackup.HandleDbBackupAsync(bot, logger, config.DB_NAME, config.ADMIN_NUMID, db), null, TimeSpan.Zero, TimeSpan.FromHours(1)); - // Close at Q - while (Console.ReadKey().KeyChar != 'q') { } + } } \ No newline at end of file