modules: better shorten URLS[*]

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-02-02 09:18:25 +01:00
parent 969c7a9fbb
commit 1440d56f48
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
data-bot-bash/* data-bot-bash/*
webhook-fifo
JSON.awk JSON.awk
bashbot.rc bashbot.rc
mycommands.sh mycommands.sh

View File

@ -4,7 +4,7 @@
# File: processUpdates.sh # File: processUpdates.sh
# Note: DO NOT EDIT! this file will be overwritten on update # Note: DO NOT EDIT! this file will be overwritten on update
# #
#### $$VERSION$$ v1.40-dev-28-g91a143a #### $$VERSION$$ v1.40-dev-33-g969c7a9
################################################################## ##################################################################
############## ##############
@ -82,7 +82,7 @@ process_update() {
process_message "${num}" "${debug}" process_message "${num}" "${debug}"
printf "%(%c)T: update received FROM=%s CHAT=%s CMD=%s\n" -1 "${USER[USERNAME]:0:20} (${USER[ID]})"\ printf "%(%c)T: update received FROM=%s CHAT=%s CMD=%s\n" -1 "${USER[USERNAME]:0:20} (${USER[ID]})"\
"${CHAT[USERNAME]:0:20}${CHAT[TITLE]:0:30} (${CHAT[ID]})"\ "${CHAT[USERNAME]:0:20}${CHAT[TITLE]:0:30} (${CHAT[ID]})"\
"${MESSAGE:0:30}${CAPTION:0:30}${URLS[*]:0:30}" >>"${UPDATELOG}" "${MESSAGE:0:30}${CAPTION:0:30}$(: "${URL[*]/bot*:}"; printf "%s" "${_//[A-Z-]}")" >>"${UPDATELOG}"
fi fi
##### #####
# process inline and message events # process inline and message events