github/hubot-scripts — pull request #92 by ab9 (2011-11-03 14:30:51+00:00)
Title: Redesign the meme generator

Problems with the current meme generator:

* It does not give users much freedom in choosing caption text.
* The trigger phrases are not very discoverable.
* The trigger phrases could readily clash with other scripts (or, for that matter, the *same* script).
* It has very few image templates to choose from.
* Modifying the script to allow new templates is not straightforward.

If this state of affairs continues, creative professionals may start doing economically useful work instead of playing with Hubot. To prevent -- or at least delay -- such a catastrophe, this pull request aims to solve these problems. It implements a more command-line-style grammar: each supported image template has a nickname, and top and bottom caption text is separated by a pipe (|) character. (The pipe is optional. If you omit it, memegenerator.net will only insert bottom text.)

To generate an "Insanity Wolf" image, for example, you'd say this:

```
Hubot: meme me insanitywolf red, green | doesn't refactor
```

This pull request also adds some of the most popular templates at memegenerator.net, and makes it very easy for contributors to add more.