lita-google-images

Build Status Code Climate Coverage Status

lita-google-images is a handler for Lita that searches Google Images for images matching users' queries, and replies with links to them.

Installation

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

gem "lita-google-images"

Configuration

Optional attributes

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

Example

Lita.configure do |config|
  config.handlers.google_images.safe_search = :off
end

Usage

The following are all equivalent ways of asking Lita to search for an image of "carl the pug":

Lita: image carl the pug
Lita: image me carl the pug
Lita: img carl the pug
Lita: img me carl the pug

The second form is for those coming from Hubot.

License

MIT