Kamiikaze / Sinusbot-Customization

Scripts and more for Sinusbot
1 stars 2 forks source link

bot can not get twitch info #6

Closed ariaieboy closed 11 months ago

ariaieboy commented 4 years ago

hi i installed the script and i config it and put my client id in the config form but after i start the bot its says this message in log DEBUG: No Data returned: undefined and can not show the title and etc

ariaieboy commented 4 years ago

added #7 to fix this problem

worked for me so far

Kamiikaze commented 4 years ago

added #7 to fix this problem

worked for me so far

Does everything work for you? I don't think so, because in the newer API the data is now on different places than before. Thats why I am rewriting the script. I already started to do it, but I lacked on time. I will look into it tmrw and check your pull request. Thanks! :)

ariaieboy commented 4 years ago

added #7 to fix this problem worked for me so far

Does everything work for you? I don't think so, because in the newer API the data is now on different places than before. Thats why I am rewriting the script. I already started to do it, but I lacked on time. I will look into it tmrw and check your pull request. Thanks! :)

with my tests yes its work good i didnt change the api to the latest one i just update it to version 5 according to this page : https://dev.twitch.tv/docs/v5/guides/migration

i just added the "Accept: application/vnd.twitchtv.v5+json" header and add a new var for twitch uid and change username api call to a uid api call

u can get uid using username over api but i didnt wanna add that extra request and just added a var for it in config