From 4fe122f06cdd800e21095a18dd594c294b30ec89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 30 Aug 2022 19:32:49 +0200 Subject: [PATCH] feat(telegram-bots): start at random time --- configs/telegram-bots/hesychius.nix | 2 ++ configs/telegram-bots/smyth.nix | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/telegram-bots/hesychius.nix b/configs/telegram-bots/hesychius.nix index 3880694..fa2112d 100644 --- a/configs/telegram-bots/hesychius.nix +++ b/configs/telegram-bots/hesychius.nix @@ -13,6 +13,8 @@ in { command = "${pkgs.coreutils}/bin/shuf -n1 ${hesychius}"; }; + systemd.timers.telegram-bot-hesychius.timerConfig.RandomizedDelaySec = "10h"; + niveum.passport.services = [ { title = "Hesychius of Alexandria Bot"; diff --git a/configs/telegram-bots/smyth.nix b/configs/telegram-bots/smyth.nix index f67fdf0..93cacdd 100644 --- a/configs/telegram-bots/smyth.nix +++ b/configs/telegram-bots/smyth.nix @@ -5,7 +5,7 @@ }: { niveum.telegramBots.smyth = { enable = true; - time = "08/6:00"; + time = "06/6:00"; token = lib.strings.fileContents ; chatIds = ["@HerbertWeirSmyth"]; command = toString (pkgs.writers.writeDash "random-smyth" '' @@ -25,6 +25,8 @@ ''); }; + systemd.timers.telegram-bot-smyth.timerConfig.RandomizedDelaySec = "3h"; + niveum.passport.services = [ { title = "Herbert Weir Smyth Bot";