A zenircbot service that implements a !meme command to generate a meme img
!meme I'm not saying it's documentation | but it's documentation [aliens guy]
result:
Top text is filled with message before the first '.' is encountered. Unless there is no '.', then all of the text is put on the bottom of the image.
Default image is the Aliens guy:
You can override the default image by putting an image url after the message surrounded by [].
The meme service will also automatically detect phrases based on regular expressions defined in config.js.
regex: /(^I don't always .+) (but when I do,? .+$)/i
regex: /(\w+(?: \w+)?) (all the .+s)[!\.]*$/i
regex: /(^one does not simply) (.+$)/i
regex: /(^not sure if [^\|]+)(?: \|)? (or .+$)/i
regex: /(^yo,? (?:dawg|dog)[\.,]* I hea?rd (?:you|u) like .+) (so (?:i|we) .+$)/i
regex: /(^the .+) (is too (?:damn )?high[!\.]?$)/i
regex: /(^(?:brace yourselves,? )?)(.+ (?:is|are) coming[!\.]?$)/i
regex: /(^what if) (.+[\?!]+$)/i
regex: /(^.+) (and you should feel bad\.?$)/i
regex: /(^.+) (y u no .+$)/i
regex: /(^am i the only one around here) (.+$)/i
regex: /(^.+) (so hot right now[\.!]*$)/i
regex: /(^ermahgerd[!\.]*) (.+$)/i
regex: /(^.+) (is strong with this one[!\.]*$)/i
regex: /(^this is) (.+!$)/i
regex: /(^.+,?) (ain'?t nobody got time for? (?:th|d)at[!\.]*)$/i
regex: /(.+) (\w+ go(?:es)? to (?:eleven|11))!?$/i
regex: /^()(fantastic)!*$/i
regex: /(.+ over )([0-9]+)([\.!]*)$/i
!meme I don't always test my code. But when I do, I do it in production [http://memecaptain.com/most_interesting.jpg]
The service will also send topic messages to the !meme command on topic change, if your version of zenircbot supports it. I have a fork of it on my github, which supports it, and will update here after I send a pull request to wraithan.
Also it uses http://memecaptain.com for the meme genereation. You could theoretically run that on your own server using https://github.com/mmb/meme_captain