Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/lita-google
A Lita handler for returning Google search results.
https://github.com/jimmycuadra/lita-google
chatops lita lita-handler ruby
Last synced: about 1 month ago
JSON representation
A Lita handler for returning Google search results.
- Host: GitHub
- URL: https://github.com/jimmycuadra/lita-google
- Owner: jimmycuadra
- License: mit
- Created: 2013-12-06T08:15:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T18:40:23.000Z (over 7 years ago)
- Last Synced: 2024-11-29T01:18:50.769Z (about 1 month ago)
- Topics: chatops, lita, lita-handler, ruby
- Language: Ruby
- Size: 19.5 KB
- Stars: 7
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lita-google
[![Build Status](https://travis-ci.org/jimmycuadra/lita-google.png?branch=master)](https://travis-ci.org/jimmycuadra/lita-google)
[![Code Climate](https://codeclimate.com/github/jimmycuadra/lita-google.png)](https://codeclimate.com/github/jimmycuadra/lita-google)
[![Coverage Status](https://coveralls.io/repos/jimmycuadra/lita-google/badge.png)](https://coveralls.io/r/jimmycuadra/lita-google)**lita-google** is a handler for [Lita](http://lita.io/) that searches Google and replies with the first link.
## Installation
Add lita-google to your Lita instance's Gemfile:
``` ruby
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](http://opensource.org/licenses/MIT)