GMTwitch icon indicating copy to clipboard operation
GMTwitch copied to clipboard

Bizarre results from twitch_stream_find_value()

Open Ziberteck opened this issue 4 years ago • 1 comments

So I was using some of the stream scripts and I noticed that I wasn't getting any accurate or even meaningful data from some of the stream functions.

` //create event twitch_init('client id'); twitch_stream_get_info("streamname");

//http async twitch_stream_async();

//draw event var info = twitch_stream_find_value("streamname", "followers" ); draw_text(x,y+96,"followers: " + string(info));

//~expected result: "followers: 52"; //~actual result: "followers: Gone";

` Not sure where 'Gone' is coming from but I haven't been able to figure out what's going on with it.

Ziberteck avatar Feb 24 '20 03:02 Ziberteck

Unfortunately, this is because GMTwitch uses a very outdated version of the Twitch API which is now out of use. The chat API functions still work as expected but the Twitch API does not. I'm working on an update for this that extends what you're able to do with the chat API (Listing badges, for example) but I have a lot to learn to be able to fix the Twitch API stuff itself.

lukefruin avatar Jun 10 '20 14:06 lukefruin