kii-chan-reloaded / RedTwiBot

A Reddit/Twitch bot that will update your subreddit statusbar when streamers are playing your sub's game
GNU General Public License v3.0
0 stars 0 forks source link

[Bug] Twitch - Unknown Error/Response #5

Closed EthanC closed 7 years ago

EthanC commented 7 years ago

This Bug has been present since the latest (last night's) commit. Not sure exactly what's going on here, doesn't seem to be returning any error, just the JSON Response from the API, into the console window.

Bot successfully loaded. Entering main loop.
Summit1G is playing PLAYERUNKNOWN'S BATTLEGROUNDS
{'stream': {'channel': {'views': 142209603, 'language': 'en', 'status': 'gamin - @summit1g', 'display_name': 'summit1g', 'updated_at': '2017-05-17T20:34:53Z', 'delay': None, 'broadcaster_language': 'en', 'game': "PLAYERUNKNOWN'S BATTLEGROUNDS", 'profile_banner_background_color': '', 'background': None, '_links': {'commercial': 'https://api.twitch.tv/kraken/channels/summit1g/commercial', 'teams': 'https://api.twitch.tv/kraken/channels/summit1g/teams', 'self': 'https://api.twitch.tv/kraken/channels/summit1g', 'chat': 'https://api.twitch.tv/kraken/chat/summit1g', 'videos': 'https://api.twitch.tv/kraken/channels/summit1g/videos', 'features': 'https://api.twitch.tv/kraken/channels/summit1g/features', 'follows': 'https://api.twitch.tv/kraken/channels/summit1g/follows', 'editors': 'https://api.twitch.tv/kraken/channels/summit1g/editors', 'subscriptions': 'https://api.twitch.tv/kraken/channels/summit1g/subscriptions', 'stream_key': 'https://api.twitch.tv/kraken/channels/summit1g/stream_key'}, 'mature': True, 'logo': 'https://static-cdn.jtvnw.net/jtv_user_pictures/summit1g-profile_image-87970af8826df799-300x300.png', 'url': 'https://www.twitch.tv/summit1g', 'followers': 2001730, '_id': 26490481, 'created_at': '2011-12-01T06:33:31Z', 'video_banner': 'https://static-cdn.jtvnw.net/jtv_user_pictures/summit1g-channel_offline_image-e2f9a1df9e695ec1-1920x1080.png', 'profile_banner': 'https://static-cdn.jtvnw.net/jtv_user_pictures/summit1g-profile_banner-da83b29c4dede9e4-480.png', 'partner': True, 'banner': None, 'name': 'summit1g'}, 'viewers': 25737, '_id': 25300079104, 'video_height': 720, 'created_at': '2017-05-17T17:56:39Z', 'delay': 0, 'average_fps': 62.2655663916, 'game': "PLAYERUNKNOWN'S BATTLEGROUNDS", 'preview': {'small': 'https://static-cdn.jtvnw.net/previews-ttv/live_user_summit1g-80x45.jpg', 'large': 'https://static-cdn.jtvnw.net/previews-ttv/live_user_summit1g-640x360.jpg', 'template': 'https://static-cdn.jtvnw.net/previews-ttv/live_user_summit1g-{width}x{height}.jpg', 'medium': 'https://static-cdn.jtvnw.net/previews-ttv/live_user_summit1g-320x180.jpg'}, '_links': {'self': 'https://api.twitch.tv/kraken/streams/summit1g'}, 'stream_type': 'live', 'is_playlist': False}, '_links': {'channel': 'https://api.twitch.tv/kraken/channels/Summit1G', 'self': 'https://api.twitch.tv/kraken/streams/Summit1G'}}
kii-chan-reloaded commented 7 years ago

Whoops. I remember putting that in to test something but I forget now why I did it. I remember I wanted to look at the response object for some reason, but no-one was streaming at the time and I was too lazy to find someone who was. Thanks for pointing that out- it's fixed now.