2012-02-16 17:39:44 -05:00
|
|
|
#!/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
|
2012-01-03 14:09:34 -05:00
|
|
|
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."""
|
|
|
|
|
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'
|
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."""
|
|
|
|
|
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'
|
2013-11-28 22:23:32 -05:00
|
|
|
bothug.example = '.bothug'
|
2010-12-11 15:47:24 -05:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2012-01-03 14:09:34 -05:00
|
|
|
print(__doc__.strip())
|