+ 1
[JS] Twitch API via discord bot
Hey o/ I'm looking for help with the Twitch API for announcing streams via my discord bot. Fiddling with the API since weeks now, can't figure out how properly fetch the data and place the pulled data into an discord.js embed. If someone knows at least something about the topic, I'd appreciate your help ^^''
1 Odpowiedź
+ 2
how about a webhook ? i think twich have it, you'll need to setup a http server for it though.
other way is to setup a schedule for every minutes or so and call https://dev.twitch.tv/docs/api/reference#get-streams i can see type field in there to check if its live. then if it is process the data to your discordjs client