Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 97a3f884bc
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (19 sloc) 0.616 kb
#!/usr/bin/python3
"""
botfun.py - activities that bots do
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
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)
phenny.do(response % otherbot)
botfight.commands = ['botfight']
botfight.priority = 'low'
def bothug(phenny, input):
phenny.do("hugs %s" % otherbot)
bothug.commands = ['bothug']
bothug.priority = 'low'
if __name__ == '__main__':
print(__doc__.strip())
Jump to Line
Something went wrong with that request. Please try again.