public
Description: Ruby IRC library (Client, Server and many IRC gateways to webservice)
Homepage:
Clone URL: git://github.com/cho45/net-irc.git
smbd (author)
Thu Oct 29 08:45:24 -0700 2009
cho45 (committer)
Thu Oct 29 20:31:20 -0700 2009
name age message
file .gitignore Sun Jul 06 05:19:53 -0700 2008 Updated .gitignore [cho45]
file AUTHORS.txt Tue Oct 20 07:57:37 -0700 2009 AUTHORS.txt を生成するように [cho45]
file ChangeLog Sun Oct 11 02:46:11 -0700 2009 Release 0.0.9 [cho45]
file README Sun May 17 08:22:00 -0700 2009 * README を更新しました。 [drry]
file Rakefile Tue Oct 20 07:57:37 -0700 2009 AUTHORS.txt を生成するように [cho45]
directory examples/ Thu Oct 29 20:31:20 -0700 2009 短縮URLのj.mpに対応 [smbd]
directory lib/ Sun Oct 11 02:46:11 -0700 2009 Release 0.0.9 [cho45]
directory spec/ Thu Oct 08 17:40:39 -0700 2009 単体で実行可能なテストに変更 [cho45]
README
= net-irc


== Description

IRC library. This is mostly conform to RFC 1459 but partly not for convenience.


== Installation

=== Archive Installation

  rake install

=== Gem Installation

  gem install net-irc


== Features/Problems

* IRC client (for bot)
* IRC server (for gateway to webservices)

== Synopsis

=== Client

  require "net/irc"

  class SimpleClient < Net::IRC::Client
    def on_privmsg(m)
      super
      channel, message = *m
      if message =~ /Hello/
        post NOTICE, channel, "Hello!"
      end
    end
  end

Net::IRC::Client manages channel status and the information is set in @channels.
So, be careful to use @channels instance variable and call super surely.

=== Server

see example/tig.rb


== IRC Gateways

There are some gateways connecting to webservices.

* Twitter
* Wassr
* Hatena Haiku
* Hatena Star

If you want to run it, type following:

  $ cd `ruby -rubygems -e 'print Gem.searcher.find("net/irc").full_gem_path+"/examples"'`

Twitter:
  $ ./tig.rb -f >> /dev/null 2>&1

Wassr:
  $ ./wig.rb

Run as daemon in default. If you want to help:

  $ ./tig.rb --help
  Usage: tig.rb [opts]
  
  
  Options:
      -p, --port [PORT=16668]          port number to listen
      -h, --host [HOST=localhost]      host name or IP address to listen
      -l, --log LOG                    log file
          --debug                      Enable debug mode
      -f, --foreground                 run foreground
      -n [user name or email address]
          --name


== Copyright

This library is based on RICE <http://arika.org/ruby/rice> written by akira yamada.

Author::    cho45 <cho45@lowreal.net>
Copyright:: Copyright (c) 2008-2009 cho45
License::   Ruby's