Try to cut down on some of the messages in the bot's output window.

This commit is contained in:
Storm Dragon 2020-07-23 13:08:16 -04:00
parent af23b70255
commit 3d8c2adde7

6
bot.sh
View File

@ -25,7 +25,7 @@ echo "JOIN #$channel" | tee -a "$input"
tail -f "$input" | telnet "$server" "$port" | while read result
do
# log the session
echo "$(date "+[$dateFormat]") $result" | tee -a "$log"
echo "$(date "+[$dateFormat]") $result" >> "$log"
# do things when you see output
case "$result" in
# respond to ping requests from the server
@ -83,7 +83,7 @@ set +f
;;
# run when a message is seen
*PRIVMSG*)
echo "$result" | tee -a "$log"
echo "$result" >> "$log"
who="${result%%!*}"
who="${who:1}"
from="${result#*#}"
@ -139,7 +139,7 @@ set -f
set +f
;;
*)
echo "$result" | tee -a "$log"
echo "$result" >> "$log"
;;
esac
done