test
This commit is contained in:
parent
cbf72f9a78
commit
fe92a78a89
3 changed files with 23 additions and 55 deletions
|
@ -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))
|
||||
|
|
Reference in a new issue