Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Quote plugin for Lita

Resources

License

Packages

No packages published

Languages