0.0
No commit activity in last 3 years
No release in over 3 years
Plugin for the irc-framework Cinch to output HTML-titles
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

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"
        ],
        "max_redirects" => 5,
        "user_agent" => "cinch-title/0.3.1"
      }
    }
  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

user_agent: An optional user agent for the requests. Some sites do not like an empty user agent (which is curb’s default).

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