mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-28 04:45:00 +00:00
fix order of debug start message
This commit is contained in:
parent
656389182f
commit
de811c173a
@ -11,7 +11,7 @@
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#
|
||||
#### $$VERSION$$ v0.98-dev-9-ge0b9f6f
|
||||
#### $$VERSION$$ v0.98-dev-11-g6563891
|
||||
#
|
||||
# Exit Codes:
|
||||
# - 0 sucess (hopefully)
|
||||
@ -804,9 +804,9 @@ start_bot() {
|
||||
# startup message
|
||||
DEBUG="$(date):Start BASHBOT updates in Mode \"${1:-normal}\" =========="
|
||||
printf "%s\n" "${DEBUG}" >>"${UPDATELOG}"
|
||||
printf "%s\n" "${DEBUG}"; DEBUG="${1}"
|
||||
# redirect to Debug.log
|
||||
[[ "${DEBUG}" == *"debug" ]] && exec &>>"${DEBUGLOG}"
|
||||
[[ "${1}" == *"debug" ]] && exec &>>"${DEBUGLOG}"
|
||||
printf "%s\n" "${DEBUG}"; DEBUG="${1}"
|
||||
[[ "${DEBUG}" == "xdebug"* ]] && set -x
|
||||
#cleaup old pipes and empty logfiles
|
||||
find "${DATADIR}" -type p -delete
|
||||
|
@ -32,7 +32,7 @@ Have FUN!
|
||||
├── scripts # place your bashbot interactive and background scripts here
|
||||
│ └── interactive.sh.clean # interactive script template for new scripts
|
||||
│
|
||||
├── logs # here you'll find ERROR, UPDSTE, DEBUG and MESSAGE.log
|
||||
├── logs # here you'll find ERROR, UPDATE, DEBUG and MESSAGE.log
|
||||
│
|
||||
├── modules # optional functions, sourced by commands.sh
|
||||
│ ├── aliases.sh # to disable modules rename them xxx.sh.off
|
||||
@ -261,5 +261,5 @@ send_action "${CHAT[ID]}" "action"
|
||||
#### [Prev Create Bot](1_firstbot.md)
|
||||
#### [Next Advanced Usage](3_advanced.md)
|
||||
|
||||
#### $$VERSION$$ v0.98-dev-10-g74caa49
|
||||
#### $$VERSION$$ v0.98-dev-11-g6563891
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user