2022-03-10 21:52:12 +01:00
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
scripts = import <niveum/packages/scripts> {inherit pkgs lib;};
|
2020-04-22 17:42:45 +02:00
|
|
|
inherit (scripts) literature-quote;
|
2020-06-10 17:37:25 +02:00
|
|
|
in {
|
2020-04-09 16:57:24 +02:00
|
|
|
niveum.telegramBots.quotebot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
time = "08/6:00";
|
2020-10-06 23:21:04 +02:00
|
|
|
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
2022-03-10 21:52:12 +01:00
|
|
|
chatIds = ["18980945" "757821027" "455964311"];
|
2020-04-09 16:57:24 +02:00
|
|
|
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.";
|
|
|
|
|
}
|
|
|
|
|
];
|
2020-04-09 16:57:24 +02:00
|
|
|
}
|