mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(hesychius): add
This commit is contained in:
24
configs/telegram-bots/hesychius.nix
Normal file
24
configs/telegram-bots/hesychius.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
hesychius = <scripts> + "/hesychius/hesychius.txt";
|
||||
in {
|
||||
niveum.telegramBots.hesychius = {
|
||||
enable = true;
|
||||
time = "08:00";
|
||||
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
chatIds = ["@HesychiosAlexandreus"];
|
||||
parseMode = "Markdown";
|
||||
command = "${pkgs.coreutils}/bin/shuf -n1 ${hesychius}";
|
||||
};
|
||||
|
||||
niveum.passport.services = [
|
||||
{
|
||||
title = "Hesychius of Alexandria Bot";
|
||||
description = "sends a random word from Hesychius of Alexandria's lexicon to Telegram.";
|
||||
link = "https://t.me/HesychiosAlexandreus";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user