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. Default: 20 (20 lines of text). nil will set no ceiling on responses.

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

d050f60... Add max_response_size to config, add corresponding tests, handle case of nil values, document chages in README.

Usage

To get the definition of a word:

Lita: ud WORD

License

MIT