Updated the joke module to use the new JokeAPI.
This commit is contained in:
parent
23a236f4b4
commit
c1c2391cc6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user