phenny-1/modules/botfun.py

26 lines
616 B
Python
Raw Normal View History

#!/usr/bin/python3
2010-12-11 15:47:24 -05:00
"""
2012-02-22 15:35:07 -05:00
botfun.py - activities that bots do
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
2010-12-11 15:47:24 -05:00
"""
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)
2010-12-11 15:47:24 -05:00
phenny.do(response % otherbot)
2010-12-11 15:47:24 -05:00
botfight.commands = ['botfight']
botfight.priority = 'low'
def bothug(phenny, input):
phenny.do("hugs %s" % otherbot)
2010-12-11 15:47:24 -05:00
bothug.commands = ['bothug']
bothug.priority = 'low'
if __name__ == '__main__':
print(__doc__.strip())