refactored me() to action()

This commit is contained in:
Luke Rogers 2013-10-01 15:41:54 +13:00
parent 52f6260e1c
commit 72babfceb2
8 changed files with 22 additions and 22 deletions

View file

@ -13,9 +13,9 @@ with open("plugins/data/8ball_responses.txt") as f:
@hook.command('8ball')
def eightball(input, me=None):
def eightball(input, action=None):
"""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)
me("shakes the magic 8 ball... {}".format(magic))
action("shakes the magic 8 ball... {}".format(magic))