Fix habitica scripts
This commit is contained in:
parent
76eb041fc2
commit
9d1c933bed
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue