From b74aa9a83524ce7e10f8323ffae155c5be577b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lennart=20M=C3=BChlenmeier?= Date: Sat, 20 Apr 2024 16:02:53 +0200 Subject: [PATCH] (feat): update moinbot, thus adding moinitoring This commit updates the moinbot config to also add a `!zahl` request, thus enabling monitoring: If no reply is sent by the bot, they are down. `niveum.passport.services.description` is also corrected and `moin: gib` removed. --- systems/makanek/moinbot.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/systems/makanek/moinbot.nix b/systems/makanek/moinbot.nix index ac04b63..9c23b51 100644 --- a/systems/makanek/moinbot.nix +++ b/systems/makanek/moinbot.nix @@ -7,9 +7,8 @@ startAt = "7:00"; script = '' greeting=$(echo "moin - MOIN - moin: gib" | shuf -n1) - echo "$greeting" | ${config.nur.repos.mic92.ircsink}/bin/ircsink \ + MOIN" | shuf -n1) + echo -e "$greeting\n!zahl" | ${config.nur.repos.mic92.ircsink}/bin/ircsink \ --nick "$greeting""bot" \ --server irc.hackint.org \ --port 6697 \ @@ -22,7 +21,7 @@ niveum.passport.services = [ { title = "moinbot"; - description = "greets #hsmr-moin:hackint.org daily."; + description = "greets #hsmr:hackint.org daily."; } ];