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