diff options
author | Jesus <heckyel@riseup.net> | 2023-07-22 10:51:26 -0500 |
---|---|---|
committer | Jesus <heckyel@riseup.net> | 2023-07-22 10:51:26 -0500 |
commit | f6d3da198811f3c9af3234c35cb4922c10248780 (patch) | |
tree | 8a2a52a06d085931da8559813d22026824c083d5 /process_event | |
parent | eb0d6b7281f666221da66e6e4c41f7a83a04e8a9 (diff) | |
download | hyperbot-f6d3da198811f3c9af3234c35cb4922c10248780.tar.lz hyperbot-f6d3da198811f3c9af3234c35cb4922c10248780.tar.xz hyperbot-f6d3da198811f3c9af3234c35cb4922c10248780.zip |
Remove blank spaces
Diffstat (limited to 'process_event')
-rw-r--r-- | process_event | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/process_event b/process_event index 379a8b2..ce14963 100644 --- a/process_event +++ b/process_event @@ -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 ;; |