Alright, done - check the original post. Keep in mind that it requires an API token with the âchannel_subscribersâ permission. You can get a token at https://apis.rtainc.co/twitchbot/token. Iâm working on lowering the amount of time it takes to get the subscription length; all tokens from that page will be faster than if you generated it on the previous link.
I wish there was easier way to retrieve playing song from Spotify, at the moment you can link your Spotify account to Last.fm account and then make a Nightbot command for it. But time to time it doesnât work at all.
Yeah. Unfortunately Spotify has not yet added âcurrent trackâ into their web API. Iâm going to try and work with them to get that added as it would be very helpful for a lot of things.
@rtainc While I appreciate your efforts to create custom APIs that consequently support Nightbot, asking people to sign up at a competing bot service isnât really user friendly and, to be frank, seems a bit like bad intentions towards Nightbot. An appropriate solution here would have been to make a simple html + js page that uses Twitchâs implicit authentication flow to let users get their own access token, and then accept the access token directly via your API.
Honestly though why do you need to know how many seconds a stream has been up? Also note you canât check subscribers for other channels, only your own channel, provided you have subscribers.