Reward the bot with the botsnack module.
This commit is contained in:
parent
3906a98a3f
commit
4b98d1e4df
14
modules/botsnack/botsnack.sh
Executable file
14
modules/botsnack/botsnack.sh
Executable 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!"
|
Loading…
Reference in New Issue
Block a user