visual errors

This commit is contained in:
Dimitar Dimitrov 2013-07-16 21:17:56 -04:00
parent 943c5b5e3f
commit 5ab8fd674f

7
bot.sh
View File

@ -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
;;