diff options
Diffstat (limited to 'modules/calc.py')
-rwxr-xr-x | modules/calc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/calc.py b/modules/calc.py index 8e7caea..9a3b174 100755 --- a/modules/calc.py +++ b/modules/calc.py @@ -28,6 +28,7 @@ subs = [ ] def calc(phenny, input): + """Use the Frink online calculator.""" q = input.group(2) if not q: return phenny.say('0?') @@ -63,6 +64,7 @@ def calc(phenny, input): phenny.say(q + ' = ' + result) else: phenny.reply("Sorry, can't calculate that.") calc.commands = ['calc'] +calc.example = '.calc 5 + 3' if __name__ == '__main__': print __doc__.strip() |