mIRC Homepage
Posted By: TillableToast TWITCH See if user is a sub - 18/11/16 01:26 PM
How would I go about seeing if a user is a sub?

Thanks,
Toast
Posted By: wobY Re: TWITCH See if user is a sub - 20/11/16 03:25 PM
wanna know the same
Posted By: splinny Re: TWITCH See if user is a sub - 21/11/16 02:53 AM
Code:
on *:text:*:*:{ echo -tgs Sub: $msgtags(subscriber).key }


Dont forget to use "req cap" stuff.
Posted By: wobY Re: TWITCH See if user is a sub - 23/11/16 12:17 PM
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.
Posted By: splinny Re: TWITCH See if user is a sub - 24/11/16 02:34 AM
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.
© mIRC Discussion Forums