Dev #29
@ -49,7 +49,7 @@ def onChat(event):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# player was mentioned
|
# player was mentioned
|
||||||
if rec_words != words and n in mentio_toggle:
|
if rec_words != words and n not in mentio_toggle:
|
||||||
try:
|
try:
|
||||||
recipients.remove(recipient) # don't send original message
|
recipients.remove(recipient) # don't send original message
|
||||||
except:
|
except:
|
||||||
@ -146,13 +146,15 @@ def onListenCommand(sender, command, label, args):
|
|||||||
msg(sender, "&c- &3%s" % word)
|
msg(sender, "&c- &3%s" % word)
|
||||||
if not keywords:
|
if not keywords:
|
||||||
msg(sender, "&cYou are currently listening for no words! Try &6/mentio add <word>")
|
msg(sender, "&cYou are currently listening for no words! Try &6/mentio add <word>")
|
||||||
|
|
||||||
|
# /mentio toggle
|
||||||
elif argnum == 1 and cmd == "toggle":
|
elif argnum == 1 and cmd == "toggle":
|
||||||
n = sender.getName()
|
n = sender.getName()
|
||||||
if n in mentio_toggle:
|
if n in mentio_toggle:
|
||||||
msg(sender,"&aNo longer listening.")
|
msg(sender,"&aNow listening.")
|
||||||
mentio_toggle.remove(n)
|
mentio_toggle.remove(n)
|
||||||
else:
|
else:
|
||||||
msg(sender,"&aNow listening.")
|
msg(sender,"&aNo longer listening.")
|
||||||
mentio_toggle.append(n)
|
mentio_toggle.append(n)
|
||||||
else:
|
else:
|
||||||
show_help(sender)
|
show_help(sender)
|
||||||
|
Reference in New Issue
Block a user