Skip to content

Instantly share code, notes, and snippets.

@onodes
Created February 8, 2010 15:27
Show Gist options
  • Select an option

  • Save onodes/298234 to your computer and use it in GitHub Desktop.

Select an option

Save onodes/298234 to your computer and use it in GitHub Desktop.
require 'socket'
require 'githubcommit.rb'
github = GitAtom2.new
#p github
data = github.check
#p data
puts 'test'
begin
sock = TCPSocket.open("localhost",6668)
rescue
puts "TCPSocket.open failed :#$!\n"
else
sock.write("PASS hogehoge\r\n")
sock.write ("NICK prelocant\r\n")
sock.write ("USER prelocant prelocant prelocant :prelocant\r\n")
sock.write ("JOIN #apt-get\r\n")
data.each{|commit|
# p commit
sock.write ("NOTICE #LOCAL-students@ircnet :#{commit}\r\n")
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment