mIRC Home    About    Download    Register    News    Help

Print Thread
raw 353 event with twitch #251907
08/03/15 01:28 PM
08/03/15 01:28 PM
Joined: Mar 2015
Posts: 7
S
sumsar1812 Offline OP
Nutrimatic drinks dispenser
sumsar1812  Offline OP
Nutrimatic drinks dispenser
S

Joined: Mar 2015
Posts: 7
Hi I am trying to get a list of all the users but I am only able to get this when I am joining the channel. I have tried both using NAMES and WHO, both saying unknown command(which I find wierd as the twitch api says /WHO calls the event 353.. )

So how is it possible to get a list of users on a channel(and not by /join) ?

Re: raw 353 event with twitch [Re: sumsar1812] #251908
08/03/15 01:36 PM
08/03/15 01:36 PM
Joined: Dec 2008
Posts: 1,511
Greece
westor Offline
Hoopy frood
westor  Offline
Hoopy frood

Joined: Dec 2008
Posts: 1,511
Greece
Try to use this code:

Usage: //echo -a Total Users: $get_users(#CHANNEL)

or

Usage 2: //echo -a Users: $get_users(#CHANNEL).nicks

Code:
alias get_users { ; by westor
  if (!$1) { return 0 }
  if ($status !== connected) { return 0 }
  if (!$chan(0)) { return 0 }
  if ($me !ison $1) { return 0 }
  var %t = $nick($1,0)
  if (!$prop) { return $iif(%t,$v1,0) }
  if ($prop == nicks) {
    var %i = 1
    while (%i <= %t) {
      var %n = $nick($1,%i)
      if (%n) { var %tot = $addtok(%tot,%n,32) }
      inc %i
    }
    if (%tot) { return %tot }
    elseif (!%tot) { return 0 }
  }
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-