mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
rename bot structure
This commit is contained in:
36
configs/bots/logotheca.nix
Normal file
36
configs/bots/logotheca.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
niveumPackages,
|
||||
...
|
||||
}: {
|
||||
niveum.bots.logotheca = {
|
||||
enable = true;
|
||||
time = "08/6:00";
|
||||
telegram = {
|
||||
enable = true;
|
||||
tokenFile = config.age.secrets.telegram-token-kmein.path;
|
||||
chatIds = ["-1001760262519"];
|
||||
parseMode = "Markdown";
|
||||
};
|
||||
mastodon = {
|
||||
enable = true;
|
||||
homeserver = "c.im";
|
||||
tokenFile = config.age.secrets.mastodon-token-logotheca.path;
|
||||
language = "de";
|
||||
};
|
||||
command = "${niveumPackages.literature-quote}/bin/literature-quote";
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
mastodon-token-logotheca.file = ../../secrets/mastodon-token-logotheca.age;
|
||||
};
|
||||
|
||||
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.";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user