Skip to content
A hubot script for memes generation using your own templates
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
script
src
test
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.coffee
package.json

README.md

hubot-memegen

A hubot script to create funny memes based on your own image templates

Build Status

Setup

First create in your hubot location a directory to put there your meme template images and it's definition. You can also use the examples directory content included in this project as base. You'll need also installed imagemagick and ghostscript fonts in your system.

$ mkdir memegen
$ cp examples/* ./memegen

There create a templates definition file in json format. You can find an example of this file in the examples directory

Then you'll need to set two environment variables. The first one is the apikey of the service imagebin.ca

HUBOT_MEMEGEN_IMAGE_BIN_APIKEY=<apikey>
HUBOT_MEMEGEN_TEMPLATES_FILE=memegen/templates.json

You'll need to add this as a dependency to your hubot:

$ npm install --save hubot-memegen

Lastly add it to the list of external dependencies in external-scripts.json:

["hubot-memegen"]

Current commands

memegen <template id> <phrase> - Create a meme using the requested template and phrase
memegen list templates - List available templates

Example

hubot memegen dog Such Hubot!

hubot list templates

Will output:

Current templates available:
dog (memegen/dog.jpg)
jesus (memegen/jesus.jpg)
You can’t perform that action at this time.