2011-10-02 16:39:13 -04:00
|
|
|
#!/usr/bin/python3
|
|
|
|
"""
|
2013-05-12 18:16:57 -04:00
|
|
|
wadsworth.py - Apply Wadsworth's Constant to some text.
|
2011-10-02 16:39:13 -04:00
|
|
|
https://gist.github.com/1257195
|
|
|
|
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
|
|
|
|
"""
|
|
|
|
|
|
|
|
def wadsworth(phenny, input):
|
2013-05-12 18:16:57 -04:00
|
|
|
""".wadsworth - Apply Wadsworth's Constant to some text."""
|
2011-10-02 16:39:13 -04:00
|
|
|
text = input.group(2)
|
2013-05-12 18:16:57 -04:00
|
|
|
if not text:
|
|
|
|
return phenny.say(".wadsworth <text> - apply Wadsworth's Constant")
|
|
|
|
|
2011-10-02 16:39:13 -04:00
|
|
|
text = text[text.find(' ', int(round(0.3 * len(text)))) + 1:]
|
|
|
|
phenny.say(text)
|
|
|
|
wadsworth.commands = ['wadsworth']
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
print(__doc__.strip())
|