follow a channel/getting started with sockets - 03/05/14 02:27 AM
I am trying to make a chat bot for a channel, and i already have simple on-text commands, caps block, and link block. I want to get into writing sockets that the bot can use for stuff like following someone that says !follow or change the current game using the kraken API.
I have no experience with sockets or how to use them. I would like to start with the follow a user thing. I wonder how i would use this:
Thanks for help.
I have no experience with sockets or how to use them. I would like to start with the follow a user thing. I wonder how i would use this:
Code:
curl -H 'Accept: application/vnd.twitchtv.v3+json' -H 'Authorization: OAuth <access_token>' \ -X PUT https://api.twitch.tv/kraken/users/ [ my bot ] /follows/channels/ [ who it should follow ]
Thanks for help.