Reward the bot with the botsnack module.

This commit is contained in:
Storm Dragon 2016-09-10 10:41:13 -04:00
parent 3906a98a3f
commit 4b98d1e4df

14
modules/botsnack/botsnack.sh Executable file
View File

@ -0,0 +1,14 @@
[ -f functions.sh ] && source functions.sh
userNick="$1"
shift
chan="$1"
shift
snack="${@:-$(shuf -n1 -e\
"BBQ microchips"\
"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")"
echo "$chan" "$thanks $userNick: $snack! $favorite!"