From c0e16df2a8de54fe5254efd0614f38fa0336017a Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Sun, 2 Oct 2011 16:39:13 -0400 Subject: [PATCH] Wadsworth's Constant module --- modules/wadsworth.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/wadsworth.py diff --git a/modules/wadsworth.py b/modules/wadsworth.py new file mode 100644 index 0000000..b282daa --- /dev/null +++ b/modules/wadsworth.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 +""" +wadsworth.py - Use Wadsworth's Constant on a string. +https://gist.github.com/1257195 +author: mutantmonkey +""" + +def wadsworth(phenny, input): + """.wadsworth - Use Wadsworth's Constant on a string.""" + text = input.group(2) + text = text[text.find(' ', int(round(0.3 * len(text)))) + 1:] + phenny.say(text) +wadsworth.commands = ['wadsworth'] + +if __name__ == '__main__': + print(__doc__.strip()) +