mIRC Home    About    Download    Register    News    Help

Print Thread
A script that can display online operators? #244243 07/02/14 11:26 PM
Joined: Feb 2014
Posts: 1
G
godlylimes Offline OP
Mostly harmless
OP Offline
Mostly harmless
G
Joined: Feb 2014
Posts: 1
Is it possible to make something like this? I'm somewhat new to scripting, but this seems like it would be an amazing script to have, if possible.

I would use this in conjunction with twitch. I know for a lot of people, the current viewer lists takes awhile to load, so it would be nice to have it set as a command.

Last edited by godlylimes; 07/02/14 11:28 PM.
Re: A script that can display online operators? [Re: godlylimes] #244706 21/03/14 06:04 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
I would also like to see a code. I have tried to code this but couldn't get it to work.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: A script that can display online operators? [Re: godlylimes] #244721 23/03/14 04:23 PM
Joined: Mar 2004
Posts: 359
L
LostServ Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Originally Posted By: godlylimes
Is it possible to make something like this? I'm somewhat new to scripting, but this seems like it would be an amazing script to have, if possible.

I would use this in conjunction with twitch. I know for a lot of people, the current viewer lists takes awhile to load, so it would be nice to have it set as a command.

Originally Posted By: judge2020
I would also like to see a code. I have tried to code this but couldn't get it to work.


Did you guys mean something like this? The command is !mods. It has a 1 minute (60 second) delay built in so the command can only be typed once every minute.

Code:
on *:text:!mods:#: {
  if (!%twitchmodlst.delay) {
    var %t = 1
    while (%t <= $nick(#,0,o)) {
      var %tmod = $iif(%tmod,%tmod $nick(#,%t,o),$nick(#,%t,o))
      inc %t
    }
    set -eu60 %twitchmodlst.delay 1
    msg # Mods Online: $iif(%tmod,%tmod,None)
  }
}

Re: A script that can display online operators? [Re: LostServ] #244725 24/03/14 12:43 AM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
thanks! i already have some anti-spam measures but i guess this will do.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: A script that can display online operators? [Re: godlylimes] #245280 15/04/14 05:11 AM
Joined: Apr 2014
Posts: 33
B
bl968 Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Apr 2014
Posts: 33
Twitch is so borked currently this is not possible using the script presented here. You would have to catch the mode commands and keep a list.

You would do that by the mode command. This will not be a real time process.

on 1:MODE:#mIRC:/notice $me $nick changed $chan mode to $1-


I capture the output of the mods command .mods for several functions, but that shows all mods not just the ones online