Project

lita-wtf

0.01
No commit activity in last 3 years
No release in over 3 years
A user-controlled dictionary plugin for Lita
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
= 0.39.0

Runtime

>= 4.0
 Project Readme

lita-wtf

Build Status MIT License RubyGems :: RMuh Gem Version Coveralls Coverage Code Climate Gemnasium

A user-controlled dictionary plugin for Lita.

Installation

Add lita-wtf to your Lita instance's Gemfile:

gem "lita-wtf"

Configuration

Optionally, you can add 'See Also' handlers

lita.config.wtf.see_also = ['merriam', 'urbandictionary']
lita.config.wtf.api_keys = {
  'merriam': 'abc123'
}

Usage

Set an entry:

lita define foo is something that you want to have defined
> foo is something that you want to have defined

Find an entry:

lita wtf is foo
> foo is something that you want to have defined

Optionally, get 'See Also' recommendations:

lita wtf is foo
> According to Merriam-Webster Collegiate Dictionary,
> foo is a mythical lion-dog used as a decorative motif
> in Far Eastern art
> To replace this with our own definition, type: define foo is <description>.

Development

This project uses dotenv to load sensitive variables for development. Create a .env file in your local copy with "MERRIAM_KEY="