mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2014
Posts: 107
M
Majeye Offline OP
Vogon poet
OP Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
Trying to make this command op (mod) only on TwitchTV.. not sure what I did wrong... it detects if the person isn't an op (mod), but it still posts the rule set into twitch anyway.. did I set the flood wrong or something?

any help would be appreciated.

Also.. how would I set a command to be twitch channel specific?



Code:
on *:TEXT:!arab:#: {
  if ((%floodarab) || ($($+(%,floodarab.,$nick),2))) { return }
  if ($nick isop #) { msg # $nick %variablename }
  else { msg # You aren't able to use this command. }
  set -u30 %floodarab. $+ $nick On
  msg $chan ARAB RULES: 1. At shaper select, hit random, but DO NOT LOCK IN 2a. Stay in bottom lane 2b. You may not enter any bushes other than the 2 in  the middle of the bottom lane 2c. You may not walk behind any wall 
  msg $chan 3. wards are allowed everywhere you are allowed to walk 4. you may not retreat to the top binding near your  guardian for safety. 5. you may not retreat to the base for saftey or healing 6. you may not buy anything unless you die (or at beginning of the match)  $+ 
}

Last edited by Majeye; 23/01/14 11:28 AM.
J
jaystew
jaystew
J
Try:

Where it says #CHANNEL change this to your channel name.

I changed the if ($nick isop #) to if ($nick !isop $chan)

It seems to work on IRC channel. I've never worked with twitch.


Code:
on *:TEXT:!arab:#CHANNEL: {
  if ((%floodarab) || ($($+(%,floodarab.,$nick),2))) { return }
  if ($nick !isop $chan) { .msg $chan $nick %variablename }
  else { .msg $chan You aren't able to use this command. }
  set -u30 %floodarab. $+ $nick On
  .msg $chan ARAB RULES: 1. At shaper select, hit random, but DO NOT LOCK IN 2a. Stay in bottom lane 2b. You may not enter any bushes other than the 2 in  the middle of the bottom lane 2c. You may not walk behind any wall 
 .msg $chan 3. wards are allowed everywhere you are allowed to walk 4. you may not retreat to the top binding near your  guardian for safety. 5. you may not retreat to the base for saftey or healing 6. you may not buy anything unless you die (or at beginning of the match)  $+ 
}

P
panda_jorstar
panda_jorstar
P
hello,

1. to make your command channel related set the name of the channel at YOURCHANNELNAME (at twitch this will be the twitch channel name)

2. it still posts the rule set because the rule set is set out of the if statement.. you should try this instead
Code:
on *:TEXT:!arab:#YOURCHANNELNAME: {
  if ((%floodarab) || ($($+(%,floodarab.,$nick),2))) { return }
  if ($nick isop #) { 
    set -u30 %floodarab. $+ $nick On
    msg # $nick %variablename
    msg $chan ARAB RULES: 1. At shaper select, hit random, but DO NOT LOCK IN 2a. Stay in bottom lane 2b. You may not enter any bushes other than the 2 in  the middle of the bottom lane 2c. You may not walk behind any wall 
    msg $chan 3. wards are allowed everywhere you are allowed to walk 4. you may not retreat to the top binding near your  guardian for safety. 5. you may not retreat to the base for saftey or healing 6. you may not buy anything unless you die (or at beginning of the match) 
    }   
  else { msg # You aren't able to use this command. }
}}


Link Copied to Clipboard