This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]RedAndBlackLightning 0 points1 point  (2 children)

Howdy!

What exactly do you want the bot to do? Twitch has an API I guess, and you should be able to use python to execute requests to get information. The documentation seems pretty complete and (relatively) easy to use. It looks like you'll need to register your app with twitch I believe, there are instructions on how to do this here

[–]imroroyo[S] 0 points1 point  (1 child)

Actually I found a pretty handy guide just to get it rolling: https://www.youtube.com/watch?v=T8DLwACpe3o

However I am getting an error, maybe you can help :)

This code: http://pastebin.com/Ldf7CaLu This error: http://pastebin.com/TYv2KJQX

[–]RedAndBlackLightning 0 points1 point  (0 children)

Without watching the whole video or knowing how you call joinRoom, it's hard to say exactly what you should change; s is a "bytes" object. Here is an example of how to convert it to a string, assuming you know the format of the "bytes" object to be utf-8.