Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

About

Lita handler to enable user defined meme images

Resources

License

Packages

No packages published

Languages