Skip to content

Latest commit

 

History

History
43 lines (40 loc) · 1.07 KB

README.org

File metadata and controls

43 lines (40 loc) · 1.07 KB

Install

gem install carrier-pigeon

Usage

require 'carrier-pigeon'

# In the open
CarrierPigeon.send(
  :uri => "irc://nick:[email protected]:6667/#channel",
  :message => "cooooo, coo coo"
)

# SSL
CarrierPigeon.send(
  :uri => "irc://nick:[email protected]:6667/#channel",
  :message => "coo, secret plan",
  :ssl => true
)

# Join a channel (required for most Freenode channels)
CarrierPigeon.send(
  :uri => "irc://nick:[email protected]:6667/#channel",
  :message => "cooooo, part of the flock",
  :join => true
)

# Join a channel that requires a password
CarrierPigeon.send(
  :uri => "irc://nick:[email protected]:6667/#channel",
  :message => "coo, the password is ..."
  :channel_password => "secret",
  :join => true
)

# Register (ping reply) prior to joining or messaging a channel (required for some private servers)
CarrierPigeon.send(
  :uri => "irc://nick:[email protected]:6667/#channel",
  :message => "cooooo, coo coo",
  :register_first => true,
  :join => true
)