No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A Cinch plugin to get information about posted URLs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Cinch Url Scraper plugin

A Cinch plugin to get information about posted URLs.

Installation

First install the gem by running:

gem install cinch-url-scraper

Then load it in your bot:

require "cinch"
require "cinch/plugins/urlscraper"

bot = Cinch::Bot.new do
  configure do |c|
    c.plugins.plugins = [Cinch::Plugins::UrlScraper]
    # The following line is not required
    c.plugins.options[Cinch::Plugins::UrlScraper] = { enabled_channels: ["#Foo", "#Bar"] } 

  end
end

bot.start

Commands

<url> # display url title / information
!url <on|off> # toggles URL scraping on and off for that channel

Example

<mpapis>: git@gist.github.com:3505088.git:
<smfbot>: Title: rvm setup for projects — Gist (at gist.github.com, mpapis on 2012-08-28 15:56), Url: https://gist.github.com/3505088

Development

Run the ./test-run.sh script to play with results of your changes in channel listed in example/config.yaml