This commit is contained in:
Luke Rogers 2014-03-25 14:46:34 +13:00
parent cbf72f9a78
commit fe92a78a89
3 changed files with 23 additions and 55 deletions

View file

@ -15,9 +15,9 @@ with open("./data/8ball_responses.txt") as f:
@hook.command('8ball')
def eightball(inp, action=None):
def eightball(input, conn):
"""8ball <question> -- The all knowing magic eight ball,
in electronic form. Ask and it shall be answered!"""
magic = text.multiword_replace(random.choice(responses), color_codes)
action("shakes the magic 8 ball... {}".format(magic))
input.action("shakes the magic 8 ball... {}".format(magic))