Project

lita-quote

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Quote handler for Lita
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0.beta2

Runtime

~> 4.0
 Project Readme

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