dannytatom / isaac-formatting
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.md | ||
| |
isaac-formatting.gemspec | ||
| |
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.

