Remove blank spaces

This commit is contained in:
Jesus 2023-07-22 10:51:26 -05:00
parent eb0d6b7281
commit f6d3da1988
No known key found for this signature in database
GPG Key ID: E607CE7149F4D71C
2 changed files with 9 additions and 9 deletions

View File

@ -550,7 +550,7 @@ while true; do
then then
yepyep=0 yepyep=0
fi fi
if (( yepyep )) if (( yepyep ))
then then
if (( $(wc -l "announcements/people/${personoslashlower}/messages" | cut -d ' ' -f 1) > 1 )) if (( $(wc -l "announcements/people/${personoslashlower}/messages" | cut -d ' ' -f 1) > 1 ))

View File

@ -113,7 +113,7 @@ function process_event
sentence="${line#* }" sentence="${line#* }"
sentence="${sentence#* }" sentence="${sentence#* }"
sentence="${sentence#* :}" sentence="${sentence#* :}"
########################## ##########################
# Shared libraries error # # Shared libraries error #
########################## ##########################
@ -180,7 +180,7 @@ function process_event
sender_u="${intermediate%% *}" sender_u="${intermediate%% *}"
message_u="${intermediate#* }" message_u="${intermediate#* }"
time_sent="${line%% *}" time_sent="${line%% *}"
seconds_ago_seen="$(( the_time_now - time_sent ))" seconds_ago_seen="$(( the_time_now - time_sent ))"
minutes_ago_seen="$(( ( the_time_now - time_sent ) / 60 ))" minutes_ago_seen="$(( ( the_time_now - time_sent ) / 60 ))"
hours_ago_seen="$(( ( the_time_now - time_sent ) / 3600 ))" hours_ago_seen="$(( ( the_time_now - time_sent ) / 3600 ))"
@ -210,7 +210,7 @@ function process_event
done done
rm "announcements/people/${personoslashlower}/messages" rm "announcements/people/${personoslashlower}/messages"
fi fi
##################### #####################
# Page title getter # # Page title getter #
##################### #####################
@ -220,7 +220,7 @@ function process_event
(( ! injected_data )) (( ! injected_data ))
then then
url_to_get="${BASH_REMATCH}" url_to_get="${BASH_REMATCH}"
the_title=$( the_title=$(
curl -L --compressed "${url_to_get}" 2> /dev/null | curl -L --compressed "${url_to_get}" 2> /dev/null |
while rdom while rdom
@ -231,7 +231,7 @@ function process_event
fi fi
done done
) )
if ! [[ -z ${the_title} ]] if ! [[ -z ${the_title} ]]
then then
send_msg "${channel_it_came_from}" "Page title: \`${the_title}'" send_msg "${channel_it_came_from}" "Page title: \`${the_title}'"
@ -300,7 +300,7 @@ function process_event
send_msg "${channel_it_came_from}" "${my_own_name}: ${personoslash} told me to tell you, (0 seconds ago): ${message}" send_msg "${channel_it_came_from}" "${my_own_name}: ${personoslash} told me to tell you, (0 seconds ago): ${message}"
else else
declare -l subjectlower="${subject}" declare -l subjectlower="${subject}"
[[ -d "announcements/people/${subjectlower}" ]] || mkdir -p "announcements/people/${subjectlower}" [[ -d "announcements/people/${subjectlower}" ]] || mkdir -p "announcements/people/${subjectlower}"
# The time in *nix seconds is saved there so that # The time in *nix seconds is saved there so that
# hyperbot can say how long ago the massage was sent # hyperbot can say how long ago the massage was sent
@ -381,7 +381,7 @@ function process_event
############# #############
# Footnotes # # Footnotes #
############# #############
*\[[[:digit:]]\]* ) *\[[[:digit:]]\]* )
declare -a fn declare -a fn
@ -405,7 +405,7 @@ function process_event
str="${fn[${n}]}" str="${fn[${n}]}"
[[ -z "${str}" ]] && continue [[ -z "${str}" ]] && continue
send_msg "${channel_it_came_from}" "[${n}] ${str}" send_msg "${channel_it_came_from}" "[${n}] ${str}"
done done
;; ;;