Meme generation for hubot with memegenerator.net
When Meme Captain went away I needed an easy way to keep generating memes with Hubot (although truthfully it wasn't me, it was my coworkers who were complaining about it). I found the old meme_generator coffee script in an abandoned hubot scripts repository on github, fixed it up, and here it is. I didn't fork the repo because I didn't want the entire thing, just this script.
Add it to your scripts folder.
You'll set environmental variables with your credentials for memegenerator.net as well as your dimension preference:
HUBOT_MEMEGEN_USERNAME
HUBOT_MEMEGEN_PASSWORD
HUBOT_MEMEGEN_DIMENSIONS
Username and password are required, however the dimensions preference is not required.
hubot memegen Y U NO - Generates the Y U NO GUY with the bottom caption of
hubot memegen I don't always but when i do - Generates The Most Interesting man in the World
hubot memegen ORLY? - Generates the ORLY? owl with the top caption of
hubot memegen (SUCCESS|NAILED IT) - Generates success kid with the top caption of
hubot memegen ALL the - Generates ALL THE THINGS
hubot memegen TOO DAMN - Generates THE RENT IS TOO DAMN HIGH guy
hubot memegen good news everyone! - Generates Professor Farnsworth
hubot memegen khanify - TEEEEEEEEEEEEEEEEEXT!
hubot memegen Not sure if or - Generates Futurama Fry
hubot memegen Yo dawg so - Generates Yo Dawg
hubot memegen ALL YOUR ARE BELONG TO US - Generates Zero Wing with the caption of
hubot memegen if , ? - Generates Philosoraptor
hubot memegen FUCK YOU - Angry Linus
hubot memegen (Oh|You) (Please|Tell) - Willy Wonka
hubot memegen you're gonna have a bad time - Bad Time Ski Instructor
hubot memegen one does not simply - Lord of the Rings Boromir
hubot memegen it looks like (you|you're) - Generates Clippy
hubot memegen AM I THE ONLY ONE AROUND HERE - The Big Lebowski
hubot memegen NOT IMPRESSED - Generates McKayla Maroney
hubot memegen PREPARE YOURSELF - Generates GoT
hubot memegen WHAT IF I TOLD YOU - Generates Morpheus
hubot memegen BETTER DRINK MY OWN PISS - Generates Bear Grylls
hubot memegen INTERNET KID , - Generates First-day-on-the-Internet Kid
skalnik was the original author
Copyright (c) 2014 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.