GithubHelp home page GithubHelp logo

jimmycuadra / lita-wordnik Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 214 KB

A Lita handler for dictionary functionality backed by Wordnik.

License: MIT License

Ruby 100.00%
wordnik lita ruby lita-handler chatops

lita-wordnik's Introduction

lita-wordnik

Build Status Code Climate Coverage Status

lita-wordnik is a handler for Lita that adds dictionary functionality backed by Wordnik.

Installation

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

gem "lita-wordnik"

Configuration

Required attributes

  • api_key (String) - Your API key for Wordnik. Register for one at the Wordnik Developer page.

Example

Lita.configure do |config|
  config.handlers.wordnik.api_key = "abc123"
end

Usage

To get the definition for a word:

Lita: define WORD

To get synonyms for a word:

Lita: synonyms WORD

or

Lita: words like WORD

To get antonyms for a word:

Lita: antonyms WORD

or

Lita: words unlike WORD

License

MIT

lita-wordnik's People

Contributors

jimmycuadra avatar michaelchadwick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

michaelchadwick

lita-wordnik's Issues

`data` may be nil

2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-wordnik-0.0.1/lib/lita/handlers/wordnik.rb:17:in `define'
2013-10-30T23:44:56.273582+00:00 app[web.1]: undefined method `[]' for nil:NilClass
2013-10-30T23:44:56.273582+00:00 app[web.1]: [2013-10-30 23:44:56 UTC] ERROR: Lita::Handlers::Wordnik crashed. The exception was:
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-wordnik-0.0.1/lib/lita/handlers/wordnik.rb:54:in `process_response'
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-wordnik-0.0.1/lib/lita/handlers/wordnik.rb:27:in `get_definition'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/muc/helper/mucclient.rb:379:in `block in activate'
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-2.6.0/lib/lita/robot.rb:33:in `block in receive'
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-2.6.0/lib/lita/handler.rb:54:in `dispatch'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-2.6.0/lib/lita/robot.rb:33:in `receive'
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-2.6.0/lib/lita/handler.rb:60:in `public_send'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/set.rb:232:in `each'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-hipchat-1.2.1/lib/lita/adapters/hipchat/callback.rb:32:in `block in muc_message'
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-2.6.0/lib/lita/handler.rb:54:in `each'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/set.rb:232:in `each_key'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/muc/helper/simplemucclient.rb:113:in `call'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/callbacks.rb:99:in `block in process'
2013-10-30T23:44:56.273582+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/lita-2.6.0/lib/lita/handler.rb:60:in `block in dispatch'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/callbacks.rb:98:in `each'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/stream.rb:277:in `receive'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/streamparser.rb:62:in `block in parse'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/muc/helper/simplemucclient.rb:113:in `handle_message'
2013-10-30T23:44:56.273776+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/callbacks.rb:99:in `call'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/stream.rb:75:in `block in start'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/callbacks.rb:98:in `process'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/xmpp4r-0.5.5/lib/xmpp4r/streamparser.rb:79:in `parse'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rexml/parsers/sax2parser.rb:142:in `call'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rexml/parsers/sax2parser.rb:142:in `block in parse'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rexml/parsers/sax2parser.rb:142:in `each'
2013-10-30T23:44:56.273914+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rexml/parsers/sax2parser.rb:142:in `parse'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.