just give reviews

This commit is contained in:
Osman Faruk Bayram 2025-05-06 10:00:56 +03:00
parent 5717b3a38f
commit 8c79526253

View file

@ -1,18 +1,14 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#!nix-shell -i bash -p jq curl #!nix-shell -i bash -p jq curl
get_wanikani() get_wanikani()
{ {
wanikani_reviews=$(curl -s -H "Authorization: Bearer 2da24e4a-ba89-4c4a-9047-d08f21e9dd01" "https://api.wanikani.com/v2/assignments?immediately_available_for_review=true" | jq '.total_count') wanikani_reviews=$(curl -s -H "Authorization: Bearer 2da24e4a-ba89-4c4a-9047-d08f21e9dd01" "https://api.wanikani.com/v2/assignments?immediately_available_for_review=true" | jq '.total_count')
wanikani_lessons=$(curl -s -H "Authorization: Bearer 2da24e4a-ba89-4c4a-9047-d08f21e9dd01" "https://api.wanikani.com/v2/assignments?immediately_available_for_lessons=true" | jq '.total_count') echo "$wanikani_reviews reviews"
echo "$wanikani_lessons lessons $wanikani_reviews reviews"
} }
main() main()
{ {
get_wanikani get_wanikani
# sleep for 10 minutes
sleep 600 sleep 600
} }