mIRC Home    About    Download    Register    News    Help

Print Thread
Twitch chatbot - how to check if someone is a sub #254756 30/08/15 08:03 PM
Joined: Aug 2015
Posts: 3
B
B3J Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Aug 2015
Posts: 3
I'm making a command to add a persons name to a list for subscriber games-
Code:
 on *:TEXT:!subgames:#: {
   if ((%floodSUB) || ($($+(%,floodSUB.,$nick),2))) { return }
  set -u15 %floodSUB On
  set -u15 %floodSUB. $+ $nick On
  
  if ($nick == isSub) {
  msg $chan $nick has been added to sub-game list.
  write subgamelist.txt $nick $+
  }
 }


where i put "isSub" i want to check whether or not the user is a subscriber to that channel. How can I do this?

Re: Twitch chatbot - how to check if someone is a sub [Re: B3J] #254799 03/09/15 11:29 AM
Joined: Sep 2015
Posts: 1
T
torriz Offline
Mostly harmless
Offline
Mostly harmless
T
Joined: Sep 2015
Posts: 1
You have to get this info from the Twitch API.

Check the twitch API documentation.

Twitch Sockread Script for mIRC



Also, this thread might help you out wink

Last edited by torriz; 03/09/15 11:30 AM.
Re: Twitch chatbot - how to check if someone is a sub [Re: torriz] #254800 03/09/15 11:37 AM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Have a look into this project, it has everything you want for Twitch: http://hawkee.com/snippet/16487/