I kept forgetting to do my reviews due to procrastination and video games, so I came up with this “solution” so to speak. Bunpro has a really simple to use API and you can query your remaining reviews and some other stuff from it. Out of desperation, I decided to attempt combining this with Steam (and some other applications)
Here’s a script that should work on most (if not all) Linux distros and maybe on the Steam deck too (and maybe on Macs, dunno how those work). Someone knowledgeable with Windows could probably come up with something similar.
You need to have curl and jq installed to use it
#!/bin/sh
# Check if bunpro reviews have been sufficiently done :P
REVIEWS_AVAILABLE="$(LD_LIBRARY_PATH="/usr/lib64" curl -s https://bunpro.jp/api/user/[put your API key here]/study_queue | jq '.requested_information.reviews_available')"
if [ $REVIEWS_AVAILABLE -ge 3 ]
then
notify-send "Bunpro lock" "Please finish your remaining ${REVIEWS_AVAILABLE} bunpro reviews first"
exit 1
else
# Run all passed arguments, if any
[ -n "$1" ] && "$@"
exit 0
fi
Add the script to a directory that is in your PATH variable and then you can simply add bunpro-lock-script.sh %command%
to any Steam game launch options that you want to “lock” until you have finished your reviews (or at least until there are less than 3 left, you can customize this threshold).
Here’s the script in action