1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(panoptikon): tellonym has ads now

This commit is contained in:
2023-03-26 00:41:55 +01:00
parent 83efbcd61c
commit a8db4ab8a8

View File

@@ -111,7 +111,18 @@ in {
reporters = [reporters.irc-kmein];
};
fxght-or-flxght = {
script = urlJSON "https://api.tellonym.me/profiles/name/fxght.or.flxght?limit=20";
script = pkgs.writers.writeDash "watch-url-json" ''
${pkgs.curl}/bin/curl -sSL 'https://api.tellonym.me/profiles/name/fxght.or.flxght?limit=20' \
| ${pkgs.jq}/bin/jq '.answers | map(
select(.type == "answer")
| {
question: .tell,
answer: .answer,
date: .createdAt,
media: .media | map(.url)
}
)'
'';
reporters = [reporters.irc-kmein];
};
};