mIRC Home    About    Download    Register    News    Help

Topic Options
#259417 - 18/11/16 01:26 PM TWITCH See if user is a sub
TillableToast Offline
Babel fish

Registered: 21/05/16
Posts: 50
How would I go about seeing if a user is a sub?

Thanks,
Toast
_________________________
Life is potato.

Top
#259424 - 20/11/16 03:25 PM Re: TWITCH See if user is a sub [Re: TillableToast]
wobY Offline
Ameglian cow

Registered: 18/10/16
Posts: 22
Loc: Croatia
wanna know the same
_________________________
My Twitch
My Twitter

Top
#259426 - 21/11/16 02:53 AM Re: TWITCH See if user is a sub [Re: TillableToast]
splinny Offline
Fjord artisan

Registered: 14/05/15
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!

Top
#259438 - 23/11/16 12:17 PM Re: TWITCH See if user is a sub [Re: splinny]
wobY Offline
Ameglian cow

Registered: 18/10/16
Posts: 22
Loc: Croatia
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.


Edited by wobY (23/11/16 12:33 PM)
_________________________
My Twitch
My Twitter

Top
#259441 - 24/11/16 02:34 AM Re: TWITCH See if user is a sub [Re: wobY]
splinny Offline
Fjord artisan

Registered: 14/05/15
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!

Top