Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created November 17, 2008 16:25
Show Gist options
  • Save vangberg/25813 to your computer and use it in GitHub Desktop.
Save vangberg/25813 to your computer and use it in GitHub Desktop.
require 'socket'
server = "irc.freenode.net"
channel = "#awesome_channel"
s = TCPSocket.open("irc.freenode.net", 6667)
s.puts "NICK simplebot"
s.puts "USER simple simple simple :simple"
s.puts "JOIN #{channel}"
s.puts "PRIVMSG #{channel} :foo bar"
s.puts "PRIVMSG #{channel} :this is stupid"
s.puts "QUIT"
while s.gets
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment