holysugar / carrier-pigeon

The simplest library to say something on IRC.

Home Page:https://github.com/portertech/carrier-pigeon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install

gem install carrier-pigeon

Usage

require 'carrier-pigeon'

# In the open
CarrierPigeon.send(
  :uri => "irc://nick:password@irc.domain.com:6667/#channel",
  :message => "cooooo, coo coo"
)

# SSL
CarrierPigeon.send(
  :uri => "irc://nick:password@irc.domain.com:6667/#channel",
  :message => "coo, secret plan",
  :ssl => true
)

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

# Join a channel that requires a password
CarrierPigeon.send(
  :uri => "irc://nick:password@irc.domain.com: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:password@irc.domain.com:6667/#channel",
  :message => "cooooo, coo coo",
  :register_first => true,
  :join => true
)

About

The simplest library to say something on IRC.

https://github.com/portertech/carrier-pigeon

License:MIT License


Languages

Language:Ruby 100.0%