Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Highly modular, highly pluggable IRC framework for ruby, since nobody's tried this before.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
LICENSE
README.markdown

README.markdown

Wrack

Because everything should be a plugin

Example bot config

require 'wrack'

navoc = Wrack::Bot.new do
  configure_server do |s|
    s.server = "irc.freenode.net"
    s.port   = 6667
  end

  configure_user do |u|
    u.nick       = "mybot"

    u.realname   = "wopr"
    u.hostname   = "localhost"
    u.servername = "localhost"
    u.fullname   = "Raaawr robots!"
  end

  register RobotPlugin
end

navoc.run!

Example plugin

# Yes, this is terribly contrived.
class RobotPlugin
  include Wrack::Plugin

  receive do
    restrict :message => /robots/

    match do |msg|
      privmsg msg.sender, "DID SOMEBODY SAY ROBOTS?"
    end
  end
end
Something went wrong with that request. Please try again.