mIRC Home    About    Download    Register    News    Help

Topic Options
#244018 - 16/01/14 11:47 PM /me Command Twitch Restrictions
HodgmoTwitch Offline
Mostly harmless

Registered: 16/01/14
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!

Top
#244019 - 17/01/14 02:36 AM Re: /me Command Twitch Restrictions [Re: HodgmoTwitch]
Nillen Offline
Hoopy frood

Registered: 24/12/13
Posts: 779
Loc: Sweden
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

Top
#244021 - 17/01/14 07:14 AM Re: /me Command Twitch Restrictions [Re: HodgmoTwitch]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
/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,.) }

Top