Added .botfight and .bothug
This commit is contained in:
26
modules/botfun.py
Executable file
26
modules/botfun.py
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/python2
|
||||
"""
|
||||
botfight.py - .botfight module
|
||||
author: mutantmonkey <mutantmonkey@gmail.com>
|
||||
"""
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user