add stache module

master
mutantmonkey 2012-01-03 14:54:26 -05:00
parent 2a809e185e
commit 585523cf7b
1 changed files with 16 additions and 0 deletions

16
modules/stache.py Normal file
View File

@ -0,0 +1,16 @@
#!/usr/bin/python3
"""
stache.py - mustachify.me module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import web
def stache(phenny, input):
""".stache <url> - 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())