refactored me() to action()
This commit is contained in:
parent
52f6260e1c
commit
72babfceb2
8 changed files with 22 additions and 22 deletions
|
@ -14,7 +14,7 @@ with open("plugins/data/flirts.txt") as f:
|
|||
if not line.startswith("//")]
|
||||
|
||||
@hook.command
|
||||
def lart(inp, me=None, nick=None, conn=None, notice=None):
|
||||
def lart(inp, action=None, nick=None, conn=None, notice=None):
|
||||
"""lart <user> -- LARTs <user>."""
|
||||
target = inp.strip()
|
||||
|
||||
|
@ -30,11 +30,11 @@ def lart(inp, me=None, nick=None, conn=None, notice=None):
|
|||
phrase = random.choice(larts)
|
||||
|
||||
# act out the message
|
||||
me(phrase.format(**values))
|
||||
action(phrase.format(**values))
|
||||
|
||||
|
||||
@hook.command
|
||||
def insult(inp, nick=None, me=None, conn=None, notice=None):
|
||||
def insult(inp, nick=None, action=None, conn=None, notice=None):
|
||||
"""insult <user> -- Makes the bot insult <user>."""
|
||||
target = inp.strip()
|
||||
|
||||
|
@ -48,11 +48,11 @@ def insult(inp, nick=None, me=None, conn=None, notice=None):
|
|||
target = inp
|
||||
|
||||
out = 'insults {}... "{}"'.format(target, random.choice(insults))
|
||||
me(out)
|
||||
action(out)
|
||||
|
||||
|
||||
@hook.command
|
||||
def flirt(inp, me=None, conn=None, notice=None):
|
||||
def flirt(inp, action=None, conn=None, notice=None):
|
||||
"""flirt <user> -- Make the bot flirt with <user>."""
|
||||
target = inp.strip()
|
||||
|
||||
|
@ -66,4 +66,4 @@ def flirt(inp, me=None, conn=None, notice=None):
|
|||
target = inp
|
||||
|
||||
out = 'flirts with {}... "{}"'.format(target, random.choice(flirts))
|
||||
me(out)
|
||||
action(out)
|
||||
|
|
Reference in a new issue