lita-quote

Build Status Coverage Status

lita-quote is a handler for Lita to store and retrieve user quotes.

Installation

Add lita-quote to your Lita instance’s Gemfile:

“by gem “lita-quote”

Configuration

  • date_format (String) - strftime-style date format to be appended to the quote. Optional, defaults to nil (no date appended).

Example

“by Lita.configure do |config| config.handlers.quote.date_format = “[%Y-%m-%d]” end

Usage

Chat functions

Store a quote:

“ita: qadd content of the quote # or addquote Added quote #42

Get a random quote:

“ita: qget # or getquote

36: a random quote [2014-03-21]

Get a given quote:

“ita: qget 42 # or getquote

42: content of the quote [2014-03-22]

Delete a quote:

“ita: qdel 42 # or delquote Deleted quote #42

License

MIT