bin: set debug for send/delete messsge as default

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-10 15:51:16 +01:00
parent 41ce9cc486
commit 427e4df6ca
7 changed files with 13 additions and 13 deletions

View File

@ -13,7 +13,7 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 18.12.2020 12:27
#
#### $$VERSION$$ v1.25-dev-41-g37e4539
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
############

View File

@ -16,7 +16,7 @@ USAGE='bashbot_stats.sh [-h|--help] [debug]'
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 23.12.2020 20:34
#
#### $$VERSION$$ v1.25-dev-45-g2a3ab2a
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
####

View File

@ -19,7 +19,7 @@ USAGE='delete_message.sh [-h|--help] "CHAT[ID]" "MESSAGE[ID]" [debug]'
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 03.01.2021 15:37
#
#### $$VERSION$$ v1.25-dev-45-g2a3ab2a
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
####
@ -42,7 +42,7 @@ esac
# set bashbot environment
# shellcheck disable=SC1090
source "${0%/*}/bashbot_env.inc.sh" "$3" # $3 debug
source "${0%/*}/bashbot_env.inc.sh" "${3:-debug}" # $3 debug
####
####

View File

@ -10,7 +10,7 @@ USAGE='broadcast_message.sh [-h|--help] [--doit] [--groups|--both|--db=file] [fo
#
# OPTIONS: --doit - broadcast is dangerous, simulate run without --doit
# --groups - send to groups instead of users
# --both - send to users and groups (default with --db)
# --both - send to users and groups
# --db name - send to all user/groups in jsonDB database (e.g. blocked)
# db file: name.jssh, db keys are user/chat id, values are ignored
#
@ -27,7 +27,7 @@ USAGE='broadcast_message.sh [-h|--help] [--doit] [--groups|--both|--db=file] [fo
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 16:14
#
#### $$VERSION$$ v1.25-dev-48-g171b196
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
####
@ -102,7 +102,7 @@ if [ -z "${SENDALL[*]}" ]; then
fi
# loop over users
printf "${GREEN}Sending broadcast message to ${SENDTO}${GROUPSALSO} of ${BOT_NAME} using database:${NC}${GREY} ${database##*/}"
printf "${GREEN}Sending broadcast message to user of ${BOT_NAME} using database:${NC}${GREY} ${database##*/}"
{ # dry run
[ -z "${DOIT}" ] && printf "${NC}\n${ORANGE}DRY RUN! use --doit as first argument to execute broadcast...${NC}\n"

View File

@ -22,7 +22,7 @@ USAGE='send_edit_message.sh [-h|--help] [format] "CHAT[ID]" "MESSAGE[ID]" "messa
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 23.12.2020 16:52
#
#### $$VERSION$$ v1.25-dev-45-g2a3ab2a
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
####
@ -56,7 +56,7 @@ esac
# set bashbot environment
# shellcheck disable=SC1090
source "${0%/*}/bashbot_env.inc.sh" "$4" # $4 debug
source "${0%/*}/bashbot_env.inc.sh" "${4:-debug}" # $4 debug
####
####

View File

@ -24,7 +24,7 @@ USAGE='send_file.sh [-h|--help] "CHAT[ID]" "file|URL" "caption ...." [type] [deb
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 25.12.2020 20:24
#
#### $$VERSION$$ v1.25-dev-45-g2a3ab2a
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
####
@ -46,7 +46,7 @@ esac
# set bashbot environment
# shellcheck disable=SC1090
source "${0%/*}/bashbot_env.inc.sh" "$5" # $5 debug
source "${0%/*}/bashbot_env.inc.sh" "${5:-debug}" # $5 debug
####
# ready, do stuff here -----

View File

@ -21,7 +21,7 @@ USAGE='send_message.sh [-h|--help] [format] "CHAT[ID]" "message ...." [debug]'
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 11:34
#
#### $$VERSION$$ v1.25-dev-45-g2a3ab2a
#### $$VERSION$$ v1.25-dev-49-g41ce9cc
#===============================================================================
####
@ -55,7 +55,7 @@ esac
# set bashbot environment
# shellcheck disable=SC1090
source "${0%/*}/bashbot_env.inc.sh" "$3" # $3 debug
source "${0%/*}/bashbot_env.inc.sh" "${3:-debug}" # $3 debug
####
# ready, do stuff here -----