public
Description: Formatting for your isaac-powered IRC bots
Homepage: http://github.com/dannytatom/isaac-formatting
Clone URL: git://github.com/dannytatom/isaac-formatting.git
name age message
file .gitignore Loading commit data...
file LICENSE
file README.md
file isaac-formatting.gemspec
directory lib/
README.md

isaac-formatting

Formatting for your isaac-powered IRC bots.

Currently it only works with clients that use mIRC's formatting system.

As far as I know, that includes mIRC, irssi and weechat.

Installation

If you already have gemcutter as a source, it's as easy as:

sudo gem install isaac-formatting

Otherwise, you'll need to install by source:

sudo gem install isaac-formatting --source http://gemcutter.org    

Usage

require 'isaac'
require 'isaac-formatting'

# The following formatting options are available:
#
# * plain
# * bold
# * italic
# * underline
# * color

configure do |c|
  c.nick   = 'colorfulll'
  c.server = 'irc.freenode.net'
  c.port   = 6667
end

on :connect do
  join '#welovecolors'
end

on :channel, /^!blue (.*)/i do
  msg channel, "#{nick} said: #{color(:blue)} #{message} #{stop_color}"
end

Copyright

Copyright (c) 2009 Danny Tatom. See LICENSE for details.