fix of fix for empty BOTTOKEN

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-05-29 18:39:54 +02:00
parent 20a969c1fe
commit 9c7a203fb3

View File

@ -97,7 +97,7 @@ DATADIR="${BASHBOT_VAR:-.}/data-bot-bash"
COUNTFILE="${BASHBOT_VAR:-.}/count"
# we assume everthing is already set up correctly if we have TOKEN
if [ -n "${BOTTOKEN}" ]; then
if [ -z "${BOTTOKEN}" ]; then
# BOTTOKEN empty read from file
if [ ! -f "${TOKENFILE}" ]; then
if [ -z "${CLEAR}" ] && [ "$1" != "init" ]; then