require 'socket' bot = TCPServer.new('telnet irc.freenode.org', 6667) s.puts "NICK foo" s.puts "USER foo 0 * :foo" s.puts "JOIN #ruby"
Standard input is empty
Standard output is empty
prog.rb:3:in `initialize': getaddrinfo: Name or service not known (SocketError) from prog.rb:3:in `new' from prog.rb:3:in `<main>'