Some documentation and minor fixes.

This commit is contained in:
Sean B. Palmer
2008-03-10 19:58:28 +00:00
parent 5cad6661c9
commit fb2cd452e9
10 changed files with 34 additions and 4 deletions

View File

@@ -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()