Skip to content

A zenircbot service that implements a !meme command to generate a meme img

Notifications You must be signed in to change notification settings

aranasaurus/zenircbot-meme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zenircbot-meme

A zenircbot service that implements a !meme command to generate a meme img

Usage

!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 [].

Magic detectors

The meme service will also automatically detect phrases based on regular expressions defined in config.js.

I don't always test my code, but when I do, I do it in production.

regex: /(^I don't always .+) (but when I do,? .+$)/i

Refactor all the things!

regex: /(\w+(?: \w+)?) (all the .+s)[!\.]*$/i

One does not simply meme in IRC

regex: /(^one does not simply) (.+$)/i

Not sure if this is working, or is awesome.

regex: /(^not sure if [^\|]+)(?: \|)? (or .+$)/i

Yo dawg I herd you like regex. so we put a regex in yo regex so you can match while you match.

regex: /(^yo,? (?:dawg|dog)[\.,]* I hea?rd (?:you|u) like .+) (so (?:i|we) .+$)/i

The amount of memes in this channel is too damn high!

regex: /(^the .+) (is too (?:damn )?high[!\.]?$)/i

Brace yourselves the memes are coming.

regex: /(^(?:brace yourselves,? )?)(.+ (?:is|are) coming[!\.]?$)/i

What if space nachos?!

regex: /(^what if) (.+[\?!]+$)/i

This meme is bad; and you should feel bad.

regex: /(^.+) (and you should feel bad\.?$)/i

IRC y u no do memes yourself?

regex: /(^.+) (y u no .+$)/i

Am I the only one around here who gives a shit about the rules?!

regex: /(^am i the only one around here) (.+$)/i

image:

Memes, so hot right now.

regex: /(^.+) (so hot right now[\.!]*$)/i

ermahgerd! Space nachos!

regex: /(^ermahgerd[!\.]*) (.+$)/i

The force is strong with this one.

regex: /(^.+) (is strong with this one[!\.]*$)/i

This is IRC!

regex: /(^this is) (.+!$)/i

Bronchitis, ain't nobody got time for that!

regex: /(^.+,?) (ain'?t nobody got time for? (?:th|d)at[!\.]*)$/i

The memes, they go to eleven!

regex: /(.+) (\w+ go(?:es)? to (?:eleven|11))!?$/i

fantastic!

regex: /^()(fantastic)!*$/i

His karma, it's over 9000!

regex: /(.+ over )([0-9]+)([\.!]*)$/i

Example

!meme I don't always test my code. But when I do, I do it in production [http://memecaptain.com/most_interesting.jpg]

Note

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

About

A zenircbot service that implements a !meme command to generate a meme img

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published