mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-11 03:50:54 +00:00
fix of fix for empty BOTTOKEN
This commit is contained in:
parent
20a969c1fe
commit
9c7a203fb3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user