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

@ -9,7 +9,7 @@ def get_generator(_json, variables):
@hook.command
def kill(inp, me=None, nick=None, conn=None, notice=None):
def kill(inp, action=None, nick=None, conn=None, notice=None):
"""kill <user> -- Makes the bot kill <user>."""
target = inp.strip()
@ -29,4 +29,4 @@ def kill(inp, me=None, nick=None, conn=None, notice=None):
generator = get_generator(f.read(), variables)
# act out the message
me(generator.generate_string())
action(generator.generate_string())