From 585523cf7b173db446014ba4e055511ce1b55975 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Tue, 3 Jan 2012 14:54:26 -0500 Subject: [PATCH] add stache module --- modules/stache.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/stache.py diff --git a/modules/stache.py b/modules/stache.py new file mode 100644 index 0000000..e012ab3 --- /dev/null +++ b/modules/stache.py @@ -0,0 +1,16 @@ +#!/usr/bin/python3 +""" +stache.py - mustachify.me module +author: mutantmonkey +""" + +import web + +def stache(phenny, input): + """.stache - Mustachify an image.""" + url = input.group(2) + phenny.reply('http://mustachify.me/?src=' + web.quote(url)) +stache.rule = (['stache'], r'(.*)') + +if __name__ == '__main__': + print(__doc__.strip())