updated antidote

This commit is contained in:
eeleater 2024-08-22 11:11:28 +02:00
parent d2b2840b29
commit f645247321
3 changed files with 28 additions and 4 deletions

View file

@ -17,4 +17,8 @@ case "$1" in
echo -n "Daily Hackerquote: "
awk 'NR=='$((1 + RANDOM % $lines ))'{print;exit}' "$file"
;;
"fact")
echo "Daily Facts:"
curl -s 'https://randomfactgenerator.net/' | awk -v RS='</div>' '/<div class='\''f'\''>/{gsub(/.*<div class='\''f'\''>/,""); print "- " $0}'
;;
esac