the bot can now exit gracefully.

This commit is contained in:
Storm Dragon
2020-08-17 21:20:12 -04:00
parent cce7ef88dc
commit 45447d2e77
4 changed files with 31 additions and 13 deletions

8
modules/exit/exit.sh Executable file
View File

@ -0,0 +1,8 @@
[ -f functions.sh ] && source functions.sh
user=$1
shift
shift
if [[ "$user" =~ $allowList ]]; then
close_bot
fi