hubot-memegen
A hubot script to create funny memes based on your own image templates
Last updated 6 years ago by basoko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-memegen 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

3 Versions

  • 0.2.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |