Reduce the amount of information printed to the output window. Everything should be in the logs.
This commit is contained in:
parent
89a78fef32
commit
a917ff513d
9
bot.sh
9
bot.sh
@ -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"*)
|
||||
|
Loading…
Reference in New Issue
Block a user