From 5ab8fd674f42d5cdfeab4ff1cce63563994624fe Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Tue, 16 Jul 2013 21:17:56 -0400 Subject: [PATCH] visual errors --- bot.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bot.sh b/bot.sh index ddef92e..0971cf0 100755 --- a/bot.sh +++ b/bot.sh @@ -6,13 +6,14 @@ echo "NICK $nick" > $config echo "USER $user" >> $config echo "JOIN #$channel" >> $config -tail -f $config | telnet $server 6667 | while read res; do -# do things when you see output +tail -f $config | telnet $server 6667 | while read res; +do + # do things when you see output case "$res" in PING*) echo "$res" | sed "s/PING/PONG/" >> $config ;; -# for pings on nick/user + # for pings on nick/user *"You have not"*) echo "JOIN #$channel" >> $config ;;