Added comments on potential additions.

main
Sleeping Crows 2023-11-27 13:09:03 -05:00
parent 243ca1d059
commit 8a3de1cf92
1 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,11 @@ else
fi
echo "===FA.SH: The Random FA Sub Generator==="
if [ ! -f ./cookies.txt ]; then
echo "!! You haven't provided a cookies.txt file !!"
echo "Providing a cookies file will let this script scrape titles from all submissions!"
echo "Place a cookies file in the same folder as this script."
fi
validate=1
# Validate the rep count is only numbers.
@ -124,6 +129,8 @@ do
echo "$ranid" >> already-checked.txt
sleep 0.5
# if it passes the second test, run the main script.
#todo: add an additional step with a SFW/NSFW flag state
# checking the rating of the submission, kicking back if an argument flag is set (ex: --safe?)
else
# Only upticks the counter on a hit.
xdg-open https://furaffinity.net/view/$ranid 2> /dev/null