mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2015
Posts: 26
Z
zigress Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Sep 2015
Posts: 26
Hi,

For a Twitch stream, I've made a list command so the streamer can play matches with viewers in an organized fashion (!list, !join, etc).
However, since the channel now has subscribers, I was looking into restricting to the list to subscribers only through a on/off command.
Here are the two commands for on/off.

on *:text:!submodeoff:#: {
if ($nick isop #) {
if ($read(submode.txt,nw,disable)) {
write -c submode.txt
msg $chan /me : The list is now open to all viewers!. | return }
else msg $chan /me : $nick Sub mode is already off!
}
}

on *:text:!submodeon:#: {
if ($nick isop #) {
if ($read(submode.txt,nw,disable)) { msg $chan /me : $nick Sub mode is already on! | return }
else { write submode.txt disable
msg $chan /me : The list is now restricted to subscribers only. | return }
}
}

This works fine for me right now.
However, the only part I need help with is adding code that basically works like this: if $nick is a subscriber, then the following command can execute. I basically want it to run like the "isop" and "isreg" operators.

Any help would be appreciated. I'm a little new to mIRC so if you can explain something in rather simple terms, I would be extremely helpful.

Joined: Sep 2015
Posts: 26
Z
zigress Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Sep 2015
Posts: 26
I looked at other threads and noticed that people would use TwitchClient 2, but it doesn't work anymore as this is the output when I send the raw message:

"Sorry, but our TWITCHCLIENT is in another castle ("

Joined: Oct 2014
Posts: 35
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
You can request the Tags Capabilitie . Then you check if (subscriber=1 isin $msgtags)


Matti
Joined: Sep 2015
Posts: 26
Z
zigress Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Sep 2015
Posts: 26
Thanks!


Link Copied to Clipboard