I am trying to get channel logo url to be used in a ‘execute in screen overlay’ command. Essentially i am trying to get the logo data point from this API end point: GET https://api.twitch.tv/kraken/channel
see also: Reference | Twitch Developers
It looks like Wizebot already has some of this data available through $twitch(data_name,user_name) where we can easily get the login, display_name, url, view_count, and description. However it does not appear to return the logo data point…
Is there an already built-in or easily extendable way of obtaining this data point for use in a ‘execute in screen overlay’ command or will i just need to perform my own XHR from within the command script to obtain the data with my own Client-ID?
You can use it :
Use with moderation
you’re amazing! <3
how much moderation should i use? what type of global cooldown would be acceptable if i use this in a command?
Less than 15 different calls per minute.
great! thank you so much! i love wizebot its been amazingly useful! and i keep finding more stuff each day
quick follow up question: is it possible to reference $(display_name) from within the command script for ‘execute in screen overlay’ type commands?
This is the code i was trying:
$(".screen_div").html("<img class='img_anim' src='https://wapi.wizebot.tv/api/avatars/$(display_name)/sized/300x300' style='position: absolute; left: 50%; transform: translateX(-50%); bottom: -1500px; width: 1000px;' />");
My goal here is to get the avatar of the user that triggers the command, and to use it within a screen overlay.
You can use this tag : #viewer_name#
This tag will be automatically replaced by the name of the viewer that starts the command.
that works! thank you again! <3
This post has been closed. Please contact a moderator if you have questions!