mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2016
Posts: 86
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
I need help with a script I've been trying to work on, I have my bot connected to multiple Twitch streams so this command will have to have different Twitter @s and Youtube channel (ID?) But I want to be able to pull up the last tweet of their Twitter profile and provide the link to the tweet (Maybe even show how many RTs and Favs in the same command) under a !lasttweet command, and the same command for YouTube for !lastvid and it shows the last Youtube video's title, a link to the video, and how many views and likes it has. Is this a possible thing through Twitter apis and using YouTube channel IDs like Nightbot has? Help on this script would be very much greatly apprecied

Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Use sockets to read the HTML of the page, and then use $regex to extract the things you need.

Good guide on sockets here: http://en.wikichip.org/wiki/mirc/sockets


Link Copied to Clipboard