mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2014
Posts: 1
H
Mostly harmless
OP Offline
Mostly harmless
H
Joined: Jan 2014
Posts: 1
Okay i'm using twitch and there is a command that users can type "/me" and it will type the variable after their name. I was wondering if there is a script able to make a conditional to where if you are op, you can use the /me command and if you aren't op, then it tells you "You aren't able to use this command" AND MAYBE at the same time making a flood on this so they aren't spamming this command. Thanks abunch!

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
What? /me is used to change the users font color to that of the pre-determined color which you chose on twitch.
(In order to make it seem like an emote)

If you mean !me instead of /me, then it makes sense.

Code:
on *:text:!me:#: {
  if (%floodme == on) { return }
  if ($nick isop #) { msg # $nick %variablename }
  else { msg # You aren't able to use this command. }
  set -u10 %floodme on
}


When this command is successfully used, it'll set a flood on called %floodme.
You can change how long you want the flood to last.
If the flood is active, the command won't do anything.



Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
/me is a command built in to mirc, you can't stop people using that. The only thing you can do as a op is to kick users using "action" in the channel.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard