module formatting tweaks; tabs -> spaces and more

This commit is contained in:
mutantmonkey
2012-01-03 14:09:34 -05:00
parent 733d3fd39e
commit 56f116732d
32 changed files with 1307 additions and 1434 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/python2
"""
botfight.py - .botfight module
author: mutantmonkey <mutantmonkey@gmail.com>
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
import random
@@ -9,18 +9,17 @@ import random
otherbot = "truncatedcone"
def botfight(phenny, input):
messages = ["hits %s", "punches %s", "kicks %s", "hits %s with a rubber hose", "stabs %s with a clean kitchen knife"]
response = random.choice(messages)
messages = ["hits %s", "punches %s", "kicks %s", "hits %s with a rubber hose", "stabs %s with a clean kitchen knife"]
response = random.choice(messages)
phenny.do(response % otherbot)
phenny.do(response % otherbot)
botfight.commands = ['botfight']
botfight.priority = 'low'
def bothug(phenny, input):
phenny.do("hugs %s" % otherbot)
phenny.do("hugs %s" % otherbot)
bothug.commands = ['bothug']
bothug.priority = 'low'
if __name__ == '__main__':
print(__doc__.strip())
print(__doc__.strip())