mIRC Home    About    Download    Register    News    Help

Print Thread
TWITCH See if user is a sub #259417 18/11/16 01:26 PM
Joined: May 2016
Posts: 50
T
TillableToast Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: May 2016
Posts: 50
How would I go about seeing if a user is a sub?

Thanks,
Toast


Life is potato.
Re: TWITCH See if user is a sub [Re: TillableToast] #259424 20/11/16 03:25 PM
Joined: Oct 2016
Posts: 22
W
wobY Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Oct 2016
Posts: 22
wanna know the same

Re: TWITCH See if user is a sub [Re: TillableToast] #259426 21/11/16 02:53 AM
Joined: May 2015
Posts: 249
splinny Offline
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
Code:
on *:text:*:*:{ echo -tgs Sub: $msgtags(subscriber).key }


Dont forget to use "req cap" stuff.


Dont give a fish - teach to fish!
Re: TWITCH See if user is a sub [Re: splinny] #259438 23/11/16 12:17 PM
Joined: Oct 2016
Posts: 22
W
wobY Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Oct 2016
Posts: 22
so can i use this:
Code:
on *:TEXT:*:#CHANNEL {
  if ($level($nick) >= 50) {
    return
  }
  elseif ($msgtags(subscriber).key = 1) {
    /auser 50 $nick
  }
}


I have it so when someone subs it makes them lvl 50 that's why im looking if the user is higher or equal to lvl 50.

Last edited by wobY; 23/11/16 12:33 PM.
Re: TWITCH See if user is a sub [Re: wobY] #259441 24/11/16 02:34 AM
Joined: May 2015
Posts: 249
splinny Offline
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
Code:
on *:TEXT:*:#CHANNEL {
  if (($level($nick) >= 50) && ($msgtags(subscriber).key == 0)) {
    /auser 0 $nick
  }
  elseif (($msgtags(subscriber).key = 1) && ($level($nick) < 50)) {
    /auser 50 $nick
  }
}

not tested.


Dont give a fish - teach to fish!