From 1440d56f482670877c555847f83f84d6f61eba68 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Tue, 2 Feb 2021 09:18:25 +0100 Subject: [PATCH] modules: better shorten URLS[*] --- dev/make-distribution.sh.exclude | 1 + modules/processUpdates.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/make-distribution.sh.exclude b/dev/make-distribution.sh.exclude index d005839..c03a2d7 100644 --- a/dev/make-distribution.sh.exclude +++ b/dev/make-distribution.sh.exclude @@ -1,4 +1,5 @@ data-bot-bash/* +webhook-fifo JSON.awk bashbot.rc mycommands.sh diff --git a/modules/processUpdates.sh b/modules/processUpdates.sh index 6890227..5e93952 100644 --- a/modules/processUpdates.sh +++ b/modules/processUpdates.sh @@ -4,7 +4,7 @@ # File: processUpdates.sh # 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}" 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]})"\ - "${MESSAGE:0:30}${CAPTION:0:30}${URLS[*]:0:30}" >>"${UPDATELOG}" + "${MESSAGE:0:30}${CAPTION:0:30}$(: "${URL[*]/bot*:}"; printf "%s" "${_//[A-Z-]}")" >>"${UPDATELOG}" fi ##### # process inline and message events