0.01
No commit activity in last 3 years
No release in over 3 years
A Lita handler for returning Google search results.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

>= 4.0
 Project Readme

lita-google

Build Status Code Climate Coverage Status

lita-google is a handler for Lita that searches Google and replies with the first link.

Installation

Add lita-google to your Lita instance's Gemfile:

gem "lita-google"

Configuration

Optional attributes

  • safe_search (String, Symbol) - The safe search setting to use. Possible values are :active, :moderate, and :off. Default: :active.

  • excluded_domains (Array) - Domains from which you never want to see results.

Example

Lita.configure do |config|
  config.handlers.google.safe_search = :off
  config.handlers.google.excluded_domains = ["gawker.com", "funnyjunk.com", "dailymail.co.uk"]
end

Usage

You: Lita, google ruby
Lita: Ruby Programming Language - https://www.ruby-lang.org/

License

MIT