stormbot/triggers/bye/bye.sh
2016-09-12 13:28:47 -04:00

14 lines
274 B
Bash
Executable File

[ -f functions.sh ] && source functions.sh
# All names to match are completely lowercase.
case "${1,,}" in
storm_dragon)
msg "$2" "NOOOOOOOOOO!!! $1: come back!!!"
;;
*)
bye=(
"Bye $1."
"Alas $1, you will be missed."
)
msg "$2" "${bye[$(($RANDOM % ${#bye[@]}))]}"
esac