mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
fix(panoptikon): tellonym has ads now
This commit is contained in:
@@ -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];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user