2012-02-16 17:39:44 -05:00
|
|
|
#!/usr/bin/python3
|
2010-12-11 15:47:24 -05:00
|
|
|
"""
|
|
|
|
botfight.py - .botfight module
|
2012-01-03 14:09:34 -05:00
|
|
|
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
|
2010-12-11 15:47:24 -05:00
|
|
|
"""
|
|
|
|
|
|
|
|
import random
|
|
|
|
|
|
|
|
otherbot = "truncatedcone"
|
|
|
|
|
|
|
|
def botfight(phenny, input):
|
2012-01-03 14:09:34 -05:00
|
|
|
messages = ["hits %s", "punches %s", "kicks %s", "hits %s with a rubber hose", "stabs %s with a clean kitchen knife"]
|
|
|
|
response = random.choice(messages)
|
2010-12-11 15:47:24 -05:00
|
|
|
|
2012-01-03 14:09:34 -05:00
|
|
|
phenny.do(response % otherbot)
|
2010-12-11 15:47:24 -05:00
|
|
|
botfight.commands = ['botfight']
|
|
|
|
botfight.priority = 'low'
|
|
|
|
|
|
|
|
def bothug(phenny, input):
|
2012-01-03 14:09:34 -05:00
|
|
|
phenny.do("hugs %s" % otherbot)
|
2010-12-11 15:47:24 -05:00
|
|
|
bothug.commands = ['bothug']
|
|
|
|
bothug.priority = 'low'
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2012-01-03 14:09:34 -05:00
|
|
|
print(__doc__.strip())
|