lita-responder is a handler for Lita that responds to most command messages using stored key-value and optionally cleverbot
Add lita-responder to your Lita instance's Gemfile at the end after all other handlers:
gem "lita-responder"
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
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?
)
lita, responder delete REGEXP_KEY
lita, responder list
lita, responder reset
- allow multiple values for single key, value selected randomly
- allow room specific key-value
- I18n