Added parting stuff.

This commit is contained in:
Storm Dragon
2016-09-04 12:43:22 -04:00
parent 7daab60d2a
commit a5706b025b
5 changed files with 45 additions and 9 deletions

13
triggers/bye/bye.sh Executable file
View File

@ -0,0 +1,13 @@
[ -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" "$1: ${bye[$(($RANDOM % ${#bye[@]}))]}"
esac