[JS] Twitch API via discord bot | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 ^^''

20th Feb 2020, 11:40 AM
Tobias Rauer
Tobias Rauer - avatar
1 Answer
+ 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
20th Feb 2020, 4:33 PM
Taste
Taste - avatar