fix wrong BASHBOTTOKEN is not empty on startup

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-05-29 14:56:15 +02:00
parent 2e9587a11d
commit 20a969c1fe

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 [ -z "${BOTTOKEN}" ]; then
if [ -n "${BOTTOKEN}" ]; then
# BOTTOKEN empty read from file
if [ ! -f "${TOKENFILE}" ]; then
if [ -z "${CLEAR}" ] && [ "$1" != "init" ]; then