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.
Add this line to your application's Gemfile:
gem 'sentry-title'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sentry-title
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.options = {
Cinch::Plugins::Sentry::Titles => {
"blacklist" => [
"facebook.com"
],
"whitelist" => [
"reddit.com",
"www.reddit.com"
]
}
}
end
end
bot.start
- 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