Lita handler to enable user defined meme images
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-custom-meme.gemspec

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