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
yepyep=0
fi
if (( yepyep ))
then
if (( $(wc -l "announcements/people/${personoslashlower}/messages" | cut -d ' ' -f 1) > 1 ))

View File

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