mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2014
Posts: 1
G
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.
Joined: Mar 2014
Posts: 215
J
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
Joined: Mar 2004
Posts: 359
L
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)
  }
}

Joined: Mar 2014
Posts: 215
J
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
Joined: Apr 2014
Posts: 33
B
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


Link Copied to Clipboard