A Lita handler for fetching definitions from Urban Dictionary.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
dump.rdb
lita-urban-dictionary.gemspec

README.md

lita-urban-dictionary

Build Status Code Climate Coverage Status

lita-urban-dictionary is a handler for Lita looks up the definitions of words on Urban Dictionary.

Installation

Add lita-urban-dictionary to your Lita instance's Gemfile:

gem "lita-urban-dictionary"

Configuration

Optional attributes

  • max_response_size (Integer, nil) - Sets a ceiling on the response size of the queried defintion, or nil for no limit.. Default: 20.

Example

This example configuration sets a max response size of 5 lines.

Lita.configure do |config|
  config.handlers.urban_dictionary.max_response_size = 5
end

Usage

To get the definition of a word:

Lita: ud WORD

License

MIT