Updated the joke module to use the new JokeAPI.

This commit is contained in:
Storm Dragon 2017-04-11 21:27:29 -04:00
parent 23a236f4b4
commit c1c2391cc6

View File

@ -1,6 +1,5 @@
[ -f functions.sh ] && source functions.sh
joke="$(curl -s 'http://tambal.azurewebsites.net/joke/random')"
joke="${joke##*\":\"}"
joke="${joke:0:-2}"
joke="$(curl -s 'https://thatsagooden.tk/?api=txt&type=all')"
joke="${joke//[[:space:]]/ }"
msg "$2" "$joke"