1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(telegram-bots): start at random time

This commit is contained in:
2022-08-30 19:32:49 +02:00
parent 4fa6a62966
commit 4fe122f06c
2 changed files with 5 additions and 1 deletions

View File

@@ -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";

View File

@@ -5,7 +5,7 @@
}: {
niveum.telegramBots.smyth = {
enable = true;
time = "08/6:00";
time = "06/6:00";
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
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";