stormbot/modules/joke/joke.sh
2017-04-11 21:27:29 -04:00

6 lines
153 B
Bash
Executable File

[ -f functions.sh ] && source functions.sh
joke="$(curl -s 'https://thatsagooden.tk/?api=txt&type=all')"
joke="${joke//[[:space:]]/ }"
msg "$2" "$joke"