Sha256: 9327486b6f66fa822dedbb6b242c532ec83b8ad23c5cefbaa3b9ce009209b480
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH << "lib" $LOAD_PATH << "../lib" require "rubygems" require "net/irc" require "pp" class EchoBot < Net::IRC::Client def initialize(*args) super end def on_rpl_welcome(m) post JOIN, "#bot_test" end def on_privmsg(m) post NOTICE, m[0], m[1] end end EchoBot.new("foobar", "6667", { :nick => "foobartest", :user => "foobartest", :real => "foobartest", }).start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
net-irc-0.0.7 | examples/echo_bot.rb |
net-irc-0.0.6 | examples/echo_bot.rb |