No commit activity in last 3 years
No release in over 3 years
A Lita handler that lets the user specify custom meme images
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-custom-meme

Gem Build Status Coverage Status

lita-custom-meme is a handler for Lita that responds with images for a user defined set of "memes".

Installation

Add lita-custom-meme to your Lita instance's Gemfile:

gem "lita-custom-meme"

Configuration

Lita.configure do |config|
  # Set to true if you wish to restrict the custom memes
  # to only be given when a direct command is given to Lita
  config.handlers.custom_meme.command_only = false
end

Usage

Any meme found in general room chat wrapped in parenthesis will cause Lita to respond with the URL to the corresponding image.

You: blah blah (something)
Lita: http://image

Note: If you do not wish to have this functionality, then you can set the command_only configuration option to true.

Command Usage

To view the image associated with a specific meme:

Lita: meme show NAME
> http://image/xxxxx.jpg

To get a list of all available memes:

Lita: meme list
> Available memes: troll, rage, tableflip

Admin Commands

To add or update a meme:

Lita: meme add NAME IMAGE

To delete a meme from the list:

Lita: meme delete NAME

Note: The above admin commands require that the user be a member of the :custom_meme_admins authorization group.

License

MIT