From 4b98d1e4df8532df338c938b18d4b71ffc4095ad Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 10 Sep 2016 10:41:13 -0400 Subject: [PATCH] Reward the bot with the botsnack module. --- modules/botsnack/botsnack.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 modules/botsnack/botsnack.sh 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!"