How do I integrate Twitch in Construct 3?

0 favourites
  • 8 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hello, Im trying to develop Construct 3 game with twitch integration. so far I have managed to Connect my game with WebSocket plugin with WebSocket->ConnectTo->"wss://irc-ws.chat.twitch.tv" and on "On Connection Open"->Browser.Log("Connected"). But Im not sure how to proceed from there. I found this image "https://imgur.com/2jxoHhY" and its kind of outdated. Im not sure what I need to input for PASS USER NICK JOIN. I have created Twitch Application with dashboard. I have cliend_Id and secret.

    When I preview my construct 3 game in console it says Connected and "actions.js:5 :tmi.twitch.tv NOTICE * :Login authentication failed".

    Can anybody help with this one?

    Thank you in advance.

    Tagged:

  • I tried it that way it worked

    Do not forget to write your username and OAuth token

    see here for document

    dev.twitch.tv/docs/irc/guide

  • Thank you for this reply, Im just confused about oauth token, is that my client_id or? Where can I get that token if that's not my client_id from dashboard?

  • You can take oauth token from this site

    twitchapps.com/tmi

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If I could I would buy you a beer keg 50L right now. It works, thank you for your quick response. Much appreciated!!!

  • One more thing Eren, how do you parse through that PRIVMSG. I wanna create sprite object for each player and show only latest text message that they posted above their sprite. I did manage to put them in dictionary but im not sure how to get only name and message. Is this done with tokkenAt?

  • yes you have to do it with tokenat.

    example pulls this nick and text

    you need to arrange according to your requirement

  • The message part did not work for me so I did this and now its showing nick and message correctly. Thank you for that snippet.

    Shorter -> tokenat(WebSocket.MessageText,1,"#"&nick)

    imgur.com/gallery/6qT9BzK

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)