0.0
No commit activity in last 3 years
No release in over 3 years
A Cinch plugin for Let Me Google That For You!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
>= 0
 Project Readme

cinch-lmgtfy¶ ↑

A simple plugin for the IRC-framework cinch to give lazy people a LMGTFY search.

Requirements¶ ↑

The plugin requires a bit.ly user and API-key and it also requires curl and ruby header files installed.

On Debian based dists:

sudo apt-get install curl ruby-dev

Example bot¶ ↑

require 'cinch'
require 'cinch/plugins/lmgtfy'

bot = Cinch::Bot.new do
  configure do |c|
    c.nick = "Cinchbot"
    c.server = "irc.freenode.org"
    c.channels = ["#cinchbots"]
    c.plugins.plugins = [Cinch::Plugins::LMGTFY]
    c.plugins.options = {
      Cinch::Plugins::LMGTFY => {
        "username" => "SOME_USER",
        "api_key" => "API_KEY"
      }
    }
  end
end

bot.start

To interact with the bot, just simply do

!google LazyUser how can i find foo

Notice¶ ↑

This is just built for fun and I have no affiliation with the LMGTFY-team nor with Google

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