stormbot/modules/yomomma/yomomma.sh

6 lines
164 B
Bash
Raw Normal View History

2017-04-15 21:19:05 -04:00
[ -f functions.sh ] && source functions.sh
joke="$(curl -s api.yomomma.info | sed -e 's/{"joke":"//' -e 's/"}$//')"
joke="${joke//[[:space:]]/ }"
msg "$2" "$joke"