Show
Ignore:
Timestamp:
01/26/08 16:31:44 (7 years ago)
Author:
cho45
Message:

lang/ruby/net-irc/trunk/examples/tig.rb,
lang/ruby/net-irc/trunk/examples/wig.rb:

Add documentation

Location:
lang/ruby/net-irc/trunk/examples
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/net-irc/trunk/examples/tig.rb

    r5532 r5533  
    11#!/usr/bin/env ruby 
     2=begin 
     3 
     4# tig.rb 
     5 
     6Ruby version of Twitter IRC Gateway 
     7( http://www.misuzilla.org/dist/net/twitterircgateway/ ) 
     8 
     9 
     10## Client opts 
     11 
     12Options specified by after irc realname. 
     13 
     14Configuration example for tiarra ( http://coderepos.org/share/wiki/Tiarra ). 
     15 
     16        twitter { 
     17                host: localhost 
     18                port: 16668 
     19                name: username@example.com athack 
     20                password: password on twitter 
     21                in-encoding: utf8 
     22                out-encoding: utf8 
     23        } 
     24 
     25### athack 
     26 
     27If `athack` client options specified, 
     28all nick in join message is leading with @. 
     29 
     30So if you complemente nicks (ex. irssi), 
     31it's good for twitter like reply command (@nick). 
     32 
     33In this case, you will see torrent of join messages after connected, 
     34because NAMES list can't send @ leading nick (it interpreted op.) 
     35 
     36## Licence 
     37 
     38Ruby's by cho45 
     39 
     40=end 
    241 
    342$LOAD_PATH << "lib" 
  • lang/ruby/net-irc/trunk/examples/wig.rb

    r5532 r5533  
    11#!/usr/bin/env ruby 
     2=begin 
     3 
     4# wig.rb 
     5 
     6Wasser IRC Gateway 
     7 
     8 
     9## Client opts 
     10 
     11Options specified by after irc realname. 
     12 
     13Configuration example for tiarra ( http://coderepos.org/share/wiki/Tiarra ). 
     14 
     15        twitter { 
     16                host: localhost 
     17                port: 16670 
     18                name: username@example.com athack 
     19                password: password on wasser 
     20                in-encoding: utf8 
     21                out-encoding: utf8 
     22        } 
     23 
     24### athack 
     25 
     26If `athack` client options specified, 
     27all nick in join message is leading with @. 
     28 
     29So if you complemente nicks (ex. irssi), 
     30it's good for twitter like reply command (@nick). 
     31 
     32In this case, you will see torrent of join messages after connected, 
     33because NAMES list can't send @ leading nick (it interpreted op.) 
     34 
     35## Licence 
     36 
     37Ruby's by cho45 
     38 
     39=end 
    240 
    341$LOAD_PATH << File.dirname(__FILE__)