diff --git a/modules/botsnack/botsnack.sh b/modules/botsnack/botsnack.sh new file mode 100755 index 0000000..0ce3d97 --- /dev/null +++ b/modules/botsnack/botsnack.sh @@ -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!"