2016-09-03 01:38:30 -04:00
|
|
|
[ -f functions.sh ] && source functions.sh
|
|
|
|
# All names to match are completely lowercase.
|
|
|
|
case "${1,,}" in
|
|
|
|
storm_dragon)
|
|
|
|
msg "$2" "my lord, $1: how may I serve you?"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
greeting=(
|
2016-09-04 12:43:22 -04:00
|
|
|
Greetings
|
|
|
|
"Howdy, welcome to $2!"
|
2016-09-03 01:38:30 -04:00
|
|
|
"Wazzup Moe Fugger!"
|
2016-09-04 12:43:22 -04:00
|
|
|
"Welcome to $2!"
|
2016-09-03 01:38:30 -04:00
|
|
|
)
|
|
|
|
msg "$2" "$1: ${greeting[$(($RANDOM % ${#greeting[@]}))]}"
|
|
|
|
esac
|