2020-08-17 21:20:12 -04:00
|
|
|
[ -f functions.sh ] && source functions.sh
|
|
|
|
|
|
|
|
user=$1
|
|
|
|
shift
|
2020-08-21 15:48:12 -04:00
|
|
|
chan="$1"
|
2020-08-17 21:20:12 -04:00
|
|
|
shift
|
|
|
|
if [[ "$user" =~ $allowList ]]; then
|
2020-08-21 15:54:40 -04:00
|
|
|
if [[ -f "response/exit.txt" ]]; then
|
|
|
|
msg "$chan" "$(shuf -n1 "response/exit.txt")"
|
|
|
|
fi
|
2020-08-17 21:20:12 -04:00
|
|
|
close_bot
|
2020-08-21 15:48:12 -04:00
|
|
|
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."
|
2020-08-17 21:20:12 -04:00
|
|
|
fi
|