2012-02-16 17:39:44 -05:00
|
|
|
#!/usr/bin/python3
|
2011-07-15 14:32:32 -04:00
|
|
|
"""
|
|
|
|
nsfw.py - some things just aren't safe for work, a phenny module
|
|
|
|
author: Casey Link <unnamedrambler@gmail.com
|
|
|
|
"""
|
|
|
|
|
|
|
|
def nsfw(phenny, input):
|
2013-10-05 19:20:37 -04:00
|
|
|
""".nsfw <link> - Mark a link (or some text) as being not safe for work."""
|
2011-07-15 14:32:32 -04:00
|
|
|
link = input.group(2)
|
|
|
|
if not link:
|
|
|
|
phenny.say(".nsfw <link> - for when a link isn't safe for work")
|
|
|
|
return
|
|
|
|
phenny.say("!!NSFW!! -> %s <- !!NSFW!!" % (link))
|
|
|
|
nsfw.rule = (['nsfw'], r'(.*)')
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2012-01-03 14:09:34 -05:00
|
|
|
print(__doc__.strip())
|