Skip to content

Instantly share code, notes, and snippets.

/being_a_jirc.rb Secret

Created April 23, 2016 13:49
Show Gist options
  • Save anonymous/4c9ddf6880ea94e4258c667f3b894672 to your computer and use it in GitHub Desktop.
Save anonymous/4c9ddf6880ea94e4258c667f3b894672 to your computer and use it in GitHub Desktop.
require 'socket'
irc_socket = TCPSocket.new('irc.freenode.net', 6667)
Thread.new do
while line = irc_socket.gets
p line
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment