Skip to content

Instantly share code, notes, and snippets.

Created May 16, 2012 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e9fb19805ff182df5148 to your computer and use it in GitHub Desktop.
Save anonymous/e9fb19805ff182df5148 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# encoding: utf-8
require 'socket'
host = 'irc.freenode.net'
port = 6667
nick = 'katamoranaaaa'
realname = 'a bot'
channel = '#woopwoop'
s = TCPSocket.new(host, port)
s.puts("NICK #{nick}")
s.puts("USER woapwoopwoop 0 * Testing") #Identify to server
s.puts("JOIN ##{channel}")
s.puts("PRIVMSG #{channel} howdy!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment