Sentry::Title
Plugin that parses HTML-titles and sends them to the channel. It blocks some domains that has to be explicitly allowed so not to interfere with plugins that handles those speficic sites.
Installation
Add this line to your application's Gemfile:
gem 'sentry-title'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sentry-title
Usage
require 'cinch'
require 'cinch/plugins/sentry/titles'
bot = Cinch::Bot.new do
configure do |c|
c.nick = "Raknet"
c.server = "irc.oftc.net"
c.channels = ["#cinchdev"]
c.plugins.plugins = [Cinch::Plugins::Sentry::Titles]
c.plugins. = {
Cinch::Plugins::Sentry::Titles => {
"blacklist" => [
"facebook.com"
],
"whitelist" => [
"reddit.com",
"www.reddit.com"
]
}
}
end
end
bot.start
Contributing
- Fork it ( https://github.com/[my-github-username]/sentry-title/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request