mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2014
Posts: 1
D
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Nov 2014
Posts: 1
Is there a command to display when a twitch viewer clicks on my follow button? Thanks in advance

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
There's no built-in command in mIRC for this, but there is a way to do it:

Originally Posted By: Loki12583
If you have not done so already, register an application here: http://www.twitch.tv/settings/connections, for your redirect url use http://localhost/, you will need your client id to request an oath token (which this script can retrieve by itself). Utilize the right click menu (from your channel) to input the client id of your application and then to request the token. If you have a separate account running a bot you should register the application under your bot, and then login as your normal user in order to request the token.

Dependencies:
$json: http://www.mircscripts.org/comments.php?cid=4407
SSL: http://www.mirc.com/ssl.html

Source: https://gist.github.com/memnochxx/5676bef5707a8019f0ca

In general you'll create an alias to open the socket and a signal to handle the response. I've just created these to allow you to follow a channel. Changing the current game uses the same call as the topic, so check that section out to use as a template.

You may come across scopes that the script currently does not request. Just add it to scope_request in twitch.ini and request/renew your token.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2014
Posts: 52
Babel fish
Offline
Babel fish
Joined: Sep 2014
Posts: 52
Westor, thank you for this script. I have slightly modified it to suit my needs. I removed lines 98-105, and changed the ON *:PART and ON *:JOIN a little. It works very well for me. My modified script is here: modified follower script What I was wondering is, how could I save the followers hash table to a file on PART and reload it on JOIN? I am pretty new to mIRC scripting and trying to achieve this on my own makes my head hurt. confused Any help would be appreciated.

EDIT: I figured it out laugh Thx anyway.

Last edited by paper0rplastic; 04/12/14 11:59 PM.

Link Copied to Clipboard