Customizable exit sayings.
This commit is contained in:
parent
173aa1241b
commit
830cd9837b
@ -5,6 +5,9 @@ shift
|
|||||||
chan="$1"
|
chan="$1"
|
||||||
shift
|
shift
|
||||||
if [[ "$user" =~ $allowList ]]; then
|
if [[ "$user" =~ $allowList ]]; then
|
||||||
|
if [[ -f "response/exit.txt" ]]; then
|
||||||
|
msg "$chan" "$(shuf -n1 "response/exit.txt")"
|
||||||
|
fi
|
||||||
close_bot
|
close_bot
|
||||||
else
|
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."
|
msg "$chan" "$user: you are not an administrator for this bot. If you believe this is an error, please contact the bot's owner."
|
||||||
|
2
response/exit.txt
Normal file
2
response/exit.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Ta ta for now.
|
||||||
|
bye.
|
Loading…
Reference in New Issue
Block a user