I have the code below to turn my twitch.tv bot on and off.
on $*:text:/^!points (on|off)/:#:{
if $nick !isop # { return }
if $2 == off {
set -e %point.off 1
msg # Not collecting points anymore.
}
if $2 == on {
unset %point.off
msg # Collecting points now.
}
}
The above code pretty much has to be on top of every other code in my REMOTE tab to work correctly. No idea why, but it works so I'm not gonna question that.
My question is, how do I get it to say a msg to the whole channel if the user is not a mod? Everytime I try to add
else { msg $chan This command is only available to moderators. }
But that doesn't work anywhere in my channel.
Also if I type in
if $nick == SOMEONE's NAME { return }
They can't do !points on or !points off but I still can. Which is like totally backwards from what I just typed in. It should be if their nick is SOMEONE's Name do the command, But when they type in !points on or !points off it doesn't work, but it works for me