16 lines
		
	
	
		
			387 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			387 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| [ -f functions.sh ] && source functions.sh
 | |
| 
 | |
| user=$1
 | |
| 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."
 | |
| fi
 |