From 830cd9837b1a57bc6ef662fd5c0fc4b5ac97a70c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 21 Aug 2020 15:54:40 -0400 Subject: [PATCH] Customizable exit sayings. --- modules/exit/exit.sh | 3 +++ response/exit.txt | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 response/exit.txt diff --git a/modules/exit/exit.sh b/modules/exit/exit.sh index 4e395aa..c344afa 100755 --- a/modules/exit/exit.sh +++ b/modules/exit/exit.sh @@ -5,6 +5,9 @@ shift chan="$1" shift if [[ "$user" =~ $allowList ]]; then + if [[ -f "response/exit.txt" ]]; then + msg "$chan" "$(shuf -n1 "response/exit.txt")" + fi close_bot else msg "$chan" "$user: you are not an administrator for this bot. If you believe this is an error, please contact the bot's owner." diff --git a/response/exit.txt b/response/exit.txt new file mode 100644 index 0000000..a0e607e --- /dev/null +++ b/response/exit.txt @@ -0,0 +1,2 @@ +Ta ta for now. +bye.