1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 20:31:07 +01:00
Files
niveum/configs/telegram-bots/literature-quote.nix

18 lines
436 B
Nix
Raw Normal View History

2022-03-10 21:52:12 +01:00
{
pkgs,
lib,
...
}: let
scripts = import <niveum/packages/scripts> {inherit pkgs lib;};
inherit (scripts) literature-quote;
2020-06-10 17:37:25 +02:00
in {
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"];
command = "${literature-quote}/bin/literature-quote";
parseMode = "Markdown";
};
}