mIRC Home    About    Download    Register    News    Help

Print Thread
Twitch Sub Script Help! #259664 07/01/17 05:39 PM
Joined: Dec 2016
Posts: 16
H
Hazman Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2016
Posts: 16
Hello, I am having a problem getting this script to work http://pastebin.com/YLaTgtSX If anyone could check it out and see what the problem could be I'd appreciate it.

Re: Twitch Sub Script Help! [Re: Hazman] #259668 09/01/17 12:35 AM
Joined: Jul 2016
Posts: 28
Z
zapdos26 Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Jul 2016
Posts: 28
To detect new subscriptions:
Code:
on *:text:*just subscribed*:#:{
     if ($nick == twitchnotify) && ($4 != to) { 
         Insert rest of code here 
   }
}

To detect resubs:
Code:
raw USERNOTICE:*:{
   if (resub isin $msgtags) {
       Insert Code Here
   }
}

Use the $msgtags(display-name).key for username and $msgtags(msg-param-months).key for amount of months subbed.
You need to also need to raw CAP REQ :twitch.tv/tags on connect smile

Re: Twitch Sub Script Help! [Re: zapdos26] #259669 09/01/17 02:31 AM
Joined: Dec 2016
Posts: 16
H
Hazman Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2016
Posts: 16
Thanks I appreciate it, I'm new to mirc client's so it's hard for me to get the right sub script, if I have any more problems I'll pm you if that's fine with you? smile

Re: Twitch Sub Script Help! [Re: Hazman] #259670 09/01/17 02:59 AM
Joined: Jul 2016
Posts: 28
Z
zapdos26 Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Jul 2016
Posts: 28
Sure go right ahead smile

Re: Twitch Sub Script Help! [Re: zapdos26] #259671 09/01/17 04:01 PM
Joined: Sep 2016
Posts: 2
V
Vecun Offline
Bowl of petunias
Offline
Bowl of petunias
V
Joined: Sep 2016
Posts: 2
Hi Zapdos26,

I make a query, where is the client ID? I am about to upload your scripts mIRC - Twitchbot - Windows And I would like to know where I get the ID to put it in the script that links it.

Re: Twitch Sub Script Help! [Re: Vecun] #259674 09/01/17 05:30 PM
Joined: Jul 2016
Posts: 28
Z
zapdos26 Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Jul 2016
Posts: 28
Instructions on how to get a client ID can be found here: https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.i96cq1if5
Btw now that you mentioned it, the newest version has the instruction on the top smile

Last edited by zapdos26; 09/01/17 06:06 PM.
Re: Twitch Sub Script Help! [Re: zapdos26] #259677 10/01/17 03:31 AM
Joined: Sep 2016
Posts: 2
V
Vecun Offline
Bowl of petunias
Offline
Bowl of petunias
V
Joined: Sep 2016
Posts: 2
Thanks @zapdos26,

But the truth that I do not understand much of this and the subject of the Client-ID I am new to this, I would appreciate it very much if you could give me some of your help.

Re: Twitch Sub Script Help! [Re: Vecun] #259678 10/01/17 03:53 PM
Joined: Jul 2016
Posts: 28
Z
zapdos26 Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Jul 2016
Posts: 28
I advise you to check your PMs