cinch-title

A plugin for the Cinch ircbot framework to output HTML-titles for URL:s posted to the channels.

Usage

require 'cinch'
require 'cinch/plugins/title'

bot = Cinch::Bot.new do
  configure do |c|
    c.nick = "HTMLBot"
    c.server = "irc.freenode.org"
    c.channels = ["#cinchbots"]
    c.plugins.plugins = [Cinch::Plugins::Title]
    c.plugins.options = {
      Cinch::Plugins::Title => {
        "ignore" => [
          "facebook.com"
        ]
      }
    }
  end
end

bot.start

Options

ignore: a list of regexps of URI:S that should be ignored max_redirects: redirects until a non-redirect is found if not set, or set it to the max number of redirects you want the plugin to follow

Copyright © 2010 Victor Bergöö. See LICENSE for details.