Giter VIP home page Giter VIP logo

lita-responder's Introduction

lita-responder

Build Status Code Climate Coverage Status

lita-responder is a handler for Lita that responds to most command messages using stored key-value and optionally cleverbot

Installation

Add lita-responder to your Lita instance's Gemfile at the end after all other handlers:

gem "lita-responder"

Configuration

  • cleverbot - set true to enable cleverbot responds to undefined messages, otherwise lita-responder will ignore them
Lita.configure do |config|
  config.handlers.responder.cleverbot = true
end

Usage

Add key-value (group: admin, responder_admins)

lita, responder add REGEXP_KEY -> VALUE

example:

lita, responder add (web)?site.*boci(\s*studio)?(\s+.*)?\?$ -> http://www.bocistudio.com

will return http://www.bocistudio.com to any commands not used by other handlers which match the regexp (eg: lita, site boci?)

Delete key-value (group: admin, responder_admins)

lita, responder delete REGEXP_KEY

List key-value (group: admin, responder_admins)

lita, responder list

Remove all key-value (group: admin)

lita, responder reset

TODO

  • allow multiple values for single key, value selected randomly
  • allow room specific key-value
  • I18n

License

MIT

lita-responder's People

Contributors

maysora avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.