stormbot/modules/botsnack/botsnack.sh

17 lines
432 B
Bash
Raw Normal View History

[ -f functions.sh ] && source functions.sh
userNick="$1"
shift
chan="$1"
shift
2016-09-10 10:47:04 -04:00
snack="${@#botsnack}"
snack="${snack:-$(shuf -n1 -e\
"BBQ microchips"\
2017-06-16 02:39:57 -04:00
"BBQ sunflower seeds"\
"BBQ corn nuts"\
"steak")}"
thanks="$(shuf -n1 -e "Thank you" "You're so awesome" "You shouldn't have" "You rock")"
favorite="$(shuf -n1 -e "my favorite" "yum yum" "this is bot heaven" "DELICIOUS")"
msg "$chan" "$thanks $userNick: $snack! $favorite!"