1
0
Fork 0

Fix habitica scripts

This commit is contained in:
Malte Brandy 2022-01-28 00:40:18 +01:00
parent 76eb041fc2
commit 9d1c933bed

View file

@ -55,7 +55,7 @@
when (oldStatus /= "done" && newStatus == "completed") $ do
result :: String <- curl "-XPOST" "-H" "x-api-user: dbd97aba-8b6b-4649-9dd4-dad284333925" "-H" "x-api-key: ${pkgs.privateValue "" "habitica-token"}" "https://habitica.com/api/v3/tasks/6e95cccd-06e1-466c-b871-643dff31423c/score/up" |> jq "-c" ".data._tmp" |> captureTrim <&> decodeUtf8
notify_send "Task Completed!" result
putTextLn oldTask
putTextLn newTask
''}/bin/habitica-points";
};
};