From 20a969c1feb5455bffddf1f45d0788ea6d32fb82 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Fri, 29 May 2020 14:56:15 +0200 Subject: [PATCH] fix wrong BASHBOTTOKEN is not empty on startup --- bashbot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbot.sh b/bashbot.sh index 9a34b88..cbe0e43 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -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