No commit activity in last 3 years
No release in over 3 years
A Lita handler for fetching definitions from Urban Dictionary.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

>= 4.0
 Project Readme

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