Reduce the amount of information printed to the output window. Everything should be in the logs.

This commit is contained in:
Storm Dragon 2020-08-10 13:25:05 -04:00
parent 89a78fef32
commit a917ff513d

9
bot.sh
View File

@ -18,9 +18,9 @@ close_bot()
trap close_bot EXIT $?
echo "Session started $(date "+%I:%M%p%n %A, %B %d, %Y")" | tee "$log"
echo "NICK $nick" | tee "$input"
echo "USER $user" | tee -a "$input"
echo "JOIN #$channel" | tee -a "$input"
echo "NICK $nick" > "$input"
echo "USER $user" >> "$input"
echo "JOIN #$channel" >> "$input"
tail -f "$input" | telnet "$server" "$port" | while read result
do
@ -30,8 +30,7 @@ do
case "$result" in
# respond to ping requests from the server
PING*)
echo "$result" | tee -a "$log"
echo "${result/I/O}" | tee -a "$input"
echo "${result/I/O}" >> "$input"
;;
# for pings on nick/user
*"You have not"*)