Skip to content
Quote plugin for Lita
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
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-quote.gemspec

README.md

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:

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

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

Usage

Chat functions

Store a quote:

Lita: qadd content of the quote # or addquote
Added quote #42

Get a random quote:

Lita: qget # or getquote
#36: a random quote [2014-03-21]

Get a given quote:

Lita: qget 42 # or getquote
#42: content of the quote [2014-03-22]

Delete a quote:

Lita: qdel 42 # or delquote
Deleted quote #42

License

MIT

You can’t perform that action at this time.