2016-09-04 12:43:22 -04:00
|
|
|
[ -f functions.sh ] && source functions.sh
|
|
|
|
# All names to match are completely lowercase.
|
2017-04-05 19:42:29 -04:00
|
|
|
exitName="${1%% *}"
|
|
|
|
|
2016-09-04 12:43:22 -04:00
|
|
|
case "${1,,}" in
|
|
|
|
storm_dragon)
|
2017-04-05 19:42:29 -04:00
|
|
|
msg "${2%% :*}" "NOOOOOOOOOO!!! $1: come back!!!"
|
2016-09-04 12:43:22 -04:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
bye=(
|
|
|
|
"Bye $1."
|
|
|
|
"Alas $1, you will be missed."
|
|
|
|
)
|
2017-04-05 19:42:29 -04:00
|
|
|
msg "${2%% :*}" "${bye[$(($RANDOM % ${#bye[@]}))]}"
|
2016-09-04 12:43:22 -04:00
|
|
|
esac
|