1
0
mirror of https://github.com/kmein/niveum synced 2026-03-29 16:51:07 +02:00

bots: post on mastodon as well

This commit is contained in:
2024-10-05 14:42:44 +02:00
parent 729f1180b7
commit 5ba3dfc451
9 changed files with 163 additions and 58 deletions

View File

@@ -7,15 +7,22 @@
}: let
hesychius = inputs.scripts.outPath + "/hesychius/hesychius.txt";
in {
niveum.telegramBots.hesychius = {
niveum.bots.hesychius = {
enable = true;
time = "08:00";
tokenFile = config.age.secrets.telegram-token-kmein.path;
chatIds = ["@HesychiosAlexandreus"];
mastodon = {
enable = false;
language = "el";
};
telegram = {
enable = true;
tokenFile = config.age.secrets.telegram-token-kmein.path;
chatIds = ["@HesychiosAlexandreus"];
};
command = "${pkgs.coreutils}/bin/shuf -n1 ${hesychius}";
};
systemd.timers.telegram-bot-hesychius.timerConfig.RandomizedDelaySec = "10h";
systemd.timers.bot-hesychius.timerConfig.RandomizedDelaySec = "10h";
niveum.passport.services = [
{