mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat(hesychius): add
This commit is contained in:
@@ -18,6 +18,7 @@ in {
|
|||||||
./literature-quote.nix
|
./literature-quote.nix
|
||||||
./astrology.nix
|
./astrology.nix
|
||||||
./autorenkalender.nix
|
./autorenkalender.nix
|
||||||
|
./hesychius.nix
|
||||||
./nachtischsatan.nix
|
./nachtischsatan.nix
|
||||||
./tlg-wotd.nix
|
./tlg-wotd.nix
|
||||||
<niveum/modules/telegram-bot.nix>
|
<niveum/modules/telegram-bot.nix>
|
||||||
|
|||||||
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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
6
flake.lock
generated
6
flake.lock
generated
@@ -195,11 +195,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657447671,
|
"lastModified": 1658427979,
|
||||||
"narHash": "sha256-SjKlNLllYdW/OHLk55hh23E3XsBU+R0Pu18LXfsxgH0=",
|
"narHash": "sha256-5W0omdIH6SAZyXSASxdlDK9+u8vbwAlHdh5gAEP+QHQ=",
|
||||||
"owner": "kmein",
|
"owner": "kmein",
|
||||||
"repo": "scripts",
|
"repo": "scripts",
|
||||||
"rev": "0bfb5d29cbd948a82d2a1c274bc0d374a88c9c88",
|
"rev": "9b945b3f38297b1cbd6a9efe337c0805d6e2997d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
Reference in New Issue
Block a user