Hello,
I made a Python script that stores messages on my stream in the log, but sometimes it happens that the message format is converted to “PRIVMSG” instead of the message, why is that?
If you know why, I would be very grateful for advice
Thank you
def connect_to_twitch(channel):
server = "irc.chat.twitch.tv"
port = 6667
token = "xxx"
irc = socket.socket()
irc.connect((server, port))
irc.send(f"PASS {token}\r\n".encode("utf-8"))
irc.send(f"NICK metjum\r\n".encode("utf-8"))
irc.send(f"JOIN #{channel}\r\n".encode("utf-8"))
return irc