mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-21 23:25:08 +00:00
some minor improvments
This commit is contained in:
parent
0f27e71b0f
commit
277178389a
@ -15,7 +15,7 @@
|
|||||||
# This file is public domain in the USA and all free countries.
|
# This file is public domain in the USA and all free countries.
|
||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#
|
#
|
||||||
# Usage: bashbot.sh [-h|--help|BOTCOMMANDS]
|
# Usage: bashbot.sh BOTCOMMAND
|
||||||
BOTCOMMANDS="-h help init start stop status suspendback resumeback killback"
|
BOTCOMMANDS="-h help init start stop status suspendback resumeback killback"
|
||||||
#
|
#
|
||||||
# Exit Codes:
|
# Exit Codes:
|
||||||
@ -30,7 +30,7 @@ BOTCOMMANDS="-h help init start stop status suspendback resumeback killb
|
|||||||
# 8 - curl/wget missing
|
# 8 - curl/wget missing
|
||||||
# 10 - not bash!
|
# 10 - not bash!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.30-dev-18-gabe058a
|
#### $$VERSION$$ v1.30-dev-23-g0f27e71
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# emmbeded system may claim bash but it is not
|
# emmbeded system may claim bash but it is not
|
||||||
@ -191,8 +191,8 @@ case "$1" in
|
|||||||
"") [ -z "${SOURCE}" ] && printf "${ORANGE}Available commands: ${GREY}${BOTCOMMANDS}${NN}" && exit
|
"") [ -z "${SOURCE}" ] && printf "${ORANGE}Available commands: ${GREY}${BOTCOMMANDS}${NN}" && exit
|
||||||
;;
|
;;
|
||||||
"-h"*) LOGO="${BASHBOT_HOME:-.}/doc/bashbot.ascii"
|
"-h"*) LOGO="${BASHBOT_HOME:-.}/doc/bashbot.ascii"
|
||||||
[ -r "${LOGO}" ] && cat "${LOGO}"
|
{ [ -r "${LOGO}" ] && cat "${LOGO}"
|
||||||
sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0"
|
sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0"; } | more
|
||||||
exit;;
|
exit;;
|
||||||
"help") HELP="${BASHBOT_HOME:-.}/README"
|
"help") HELP="${BASHBOT_HOME:-.}/README"
|
||||||
if [ -n "${INTERACTIVE}" ];then
|
if [ -n "${INTERACTIVE}" ];then
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# If you your bot is finished you can use make-standalone.sh to create the
|
# If you your bot is finished you can use make-standalone.sh to create the
|
||||||
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.30-dev-22-g0596983
|
#### $$VERSION$$ v1.30-dev-23-g0f27e71
|
||||||
###################################################################
|
###################################################################
|
||||||
|
|
||||||
#shellcheck disable=SC1090
|
#shellcheck disable=SC1090
|
||||||
|
Loading…
Reference in New Issue
Block a user