Skip to content
A Lita handler for reply using saved key-value and optionally cleverbot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
locales
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-responder.gemspec
lita-responder.sublime-project

README.md

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

You can’t perform that action at this time.