1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/telegram-bots/literature-quote.nix

26 lines
634 B
Nix
Raw Normal View History

2022-03-10 21:52:12 +01:00
{
pkgs,
config,
2022-03-10 21:52:12 +01:00
lib,
...
}: let
scripts = import ../../packages/scripts {inherit config pkgs lib;};
inherit (scripts) literature-quote;
2020-06-10 17:37:25 +02:00
in {
niveum.telegramBots.quotebot = {
enable = true;
time = "08/6:00";
tokenFile = config.age.secrets.telegram-token-kmein.path;
2022-07-11 07:57:19 +02:00
chatIds = ["-1001760262519"];
command = "${literature-quote}/bin/literature-quote";
parseMode = "Markdown";
};
2022-05-22 11:47:59 +02:00
niveum.passport.services = [
{
title = "Literature quote bot";
description = "sends me and my friends three <a href=\"https://logotheca.xn--kiern-0qa.de/\">logotheca</a> quotes a day.";
}
];
}