stormbot/modules/joke/joke.sh

6 lines
179 B
Bash
Raw Normal View History

2017-04-06 21:18:52 -04:00
[ -f functions.sh ] && source functions.sh
joke="$(curl -s 'https://thatsagooden.tk/?api=txt&type=all&exclude=sex,little_johnny')"
joke="${joke//[[:space:]]/ }"
2017-04-06 21:18:52 -04:00
msg "$2" "$joke"