Zircon
IRC client library written in Pure Ruby.
Installation
$ gem install zircon
Example
require "zircon"
client = Zircon.new(
:server => "example.com",
:port => "6667",
:channel => "#chatroid",
:username => "zircon"
)
client.on_privmsg do ||
client.privmsg "#chatroid", ":zircon!"
end
client. do ||
puts "*** `on_message` responds with all received message ***"
puts .from
puts .to
puts .type
puts .body
end
client.run!