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
|
[ -f functions.sh ] && source functions.sh
|
||||||
|
|
||||||
joke="$(curl -s 'http://tambal.azurewebsites.net/joke/random')"
|
joke="$(curl -s 'https://thatsagooden.tk/?api=txt&type=all')"
|
||||||
joke="${joke##*\":\"}"
|
joke="${joke//[[:space:]]/ }"
|
||||||
joke="${joke:0:-2}"
|
|
||||||
msg "$2" "$joke"
|
msg "$2" "$joke"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user