I’m trying to read chat from twitch with the IRC, I have got an example with python but if I attempt to do this in Roblox it says " twitch.tv: Trust check failed"
ExampleOutput1: https://gyazo.com/a6b51f3b0ef3dfdf39995b04959cb2b9
ExampleOutput2: https://gyazo.com/a854437fbe52d6312e714264ee7186db
Error: https://gyazo.com/6fe3b8d744bb5bd9aa05ac6b436461fb
I have looked around dev forum but all of the trust check failed is for Roblox (which I can see)
# example python
server = 'irc.chat.twitch.tv'
nickname = "Test"
port = 6667
token = 'privatel'
channel = '#kitboga'
import socket
import time
sock = socket.socket()
sock.connect((server, port))
sock.send(f"PASS {token}\n".encode('utf-8'))
sock.send(f"NICK {nickname}\n".encode('utf-8'))
sock.send(f"JOIN {channel}\n".encode('utf-8'))
resp = sock.recv(2048).decode('utf-8')
print(resp)
time.sleep(.1)
resp2 = sock.recv(2048).decode('utf-8')
print(resp2)
Output: https://gyazo.com/a854437fbe52d6312e714264ee7186db
-- example lua
local HttpService = game:GetService("HttpService")
local server = "irc.chat.twitch.tv"
local nickname = "Test" .. game.JobId
local token = "Private"
local channel = "#kitboga"
local pass = HttpService:PostAsync(server, "PASS " .. tostring(token) .. "\n", Enum.HttpContentType.ApplicationUrlEncoded, false)
print(pass)
I most likely have done something terribly wrong but i do not know what i have done wrong/how to fix any help will be appreciated!
If you want to run the scripts you need to generate a token/OAuth you can do that here:
https://twitchapps.com/tmi/
(replace “Private” in token with the OAuth that was generated)