phenny/modules/botfun.py

32 lines
780 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
2017-02-11 01:52:53 -05:00
otherbot = "quone"
2010-12-11 15:47:24 -05:00
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'
2013-11-28 22:23:32 -05:00
botfight.example = '.botfight'
2010-12-11 15:47:24 -05:00
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'
2013-11-28 22:23:32 -05:00
bothug.example = '.bothug'
2010-12-11 15:47:24 -05:00
if __name__ == '__main__':
print(__doc__.strip())