phenny-1/modules/botfun.py

30 lines
730 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):
2013-10-05 19:20:37 -04:00
""".botfight - Fight the other bot in the channel."""
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):
2013-10-05 19:20:37 -04:00
""".bothug - Hug the other bot in the channel."""
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())