mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-29 10:43:53 +00:00
bin: fix some script bugs
This commit is contained in:
parent
da214ab819
commit
fa8e8a267c
@ -13,7 +13,7 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 18.12.2020 12:27
|
# CREATED: 18.12.2020 12:27
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
############
|
############
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 23.12.2020 20:34
|
# CREATED: 23.12.2020 20:34
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
####
|
####
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 03.01.2021 15:37
|
# CREATED: 03.01.2021 15:37
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
####
|
####
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 16.12.2020 16:14
|
# CREATED: 16.12.2020 16:14
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# shellcheck disable=SC2059
|
# shellcheck disable=SC2059
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ fi
|
|||||||
# parse args -----------------
|
# parse args -----------------
|
||||||
SEND="send_message"
|
SEND="send_message"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"nor*"|"tex*")
|
"nor"*|"tex"*)
|
||||||
SEND="send_normal_message"
|
SEND="send_normal_message"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
@ -22,14 +22,14 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 23.12.2020 16:52
|
# CREATED: 23.12.2020 16:52
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
####
|
####
|
||||||
# parse args
|
# parse args
|
||||||
SEND="edit_normal_message"
|
SEND="edit_normal_message"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"nor*"|"tex*")
|
"nor"*|"tex"*)
|
||||||
SEND="edit_normal_message"
|
SEND="edit_normal_message"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
@ -54,7 +54,6 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# set bashbot environment
|
# set bashbot environment
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
source "${0%/*}/bashbot_env.inc.sh" "$4" # $4 debug
|
source "${0%/*}/bashbot_env.inc.sh" "$4" # $4 debug
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 25.12.2020 20:24
|
# CREATED: 25.12.2020 20:24
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-25-gcb81f7c
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
####
|
####
|
||||||
# parse args
|
# parse args
|
||||||
SEND="upload_file"
|
SEND="send_file"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
'')
|
'')
|
||||||
printf "missing arguments\n"
|
printf "missing arguments\n"
|
||||||
|
@ -21,14 +21,14 @@
|
|||||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 16.12.2020 11:34
|
# CREATED: 16.12.2020 11:34
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
|
#### $$VERSION$$ v1.25-dev-34-gda214ab
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
####
|
####
|
||||||
# parse args
|
# parse args
|
||||||
SEND="send_message"
|
SEND="send_message"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"nor*"|"tex*")
|
"nor"*|"tex"*)
|
||||||
SEND="send_normal_message"
|
SEND="send_normal_message"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user