visual errors
This commit is contained in:
		
							
								
								
									
										7
									
								
								bot.sh
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								bot.sh
									
									
									
									
									
								
							| @@ -6,13 +6,14 @@ echo "NICK $nick" > $config | |||||||
| echo "USER $user" >> $config | echo "USER $user" >> $config | ||||||
| echo "JOIN #$channel" >> $config | echo "JOIN #$channel" >> $config | ||||||
|  |  | ||||||
| tail -f $config | telnet $server 6667 | while read res; do | tail -f $config | telnet $server 6667 | while read res; | ||||||
| # do things when you see output | do | ||||||
|  |   # do things when you see output | ||||||
|   case "$res" in |   case "$res" in | ||||||
|     PING*) |     PING*) | ||||||
|       echo "$res" | sed "s/PING/PONG/" >> $config  |       echo "$res" | sed "s/PING/PONG/" >> $config  | ||||||
|     ;; |     ;; | ||||||
| # for pings on nick/user |     # for pings on nick/user | ||||||
|     *"You have not"*) |     *"You have not"*) | ||||||
|       echo "JOIN #$channel" >> $config |       echo "JOIN #$channel" >> $config | ||||||
|     ;; |     ;; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user