Updated joke module.

This commit is contained in:
Storm Dragon 2017-04-06 21:18:52 -04:00
parent 43fefe8a89
commit eff95fe4d6

6
modules/joke/joke.sh Executable file
View File

@ -0,0 +1,6 @@
[ -f functions.sh ] && source functions.sh
joke="$(curl -s 'http://tambal.azurewebsites.net/joke/random')"
joke="${joke##*\":\"}"
joke="${joke:0:-2}"
msg "$2" "$joke"