From d470e64979868a85861e0249d9281d79c7134f20 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Mon, 17 Jun 2024 19:46:26 +0800 Subject: [PATCH] I'm a retard. --- KfChatDotNetKickBot/Services/TwitchWs.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/KfChatDotNetKickBot/Services/TwitchWs.cs b/KfChatDotNetKickBot/Services/TwitchWs.cs index f4e5fbc..6bce26a 100644 --- a/KfChatDotNetKickBot/Services/TwitchWs.cs +++ b/KfChatDotNetKickBot/Services/TwitchWs.cs @@ -93,7 +93,11 @@ public class TwitchWs foreach (var channel in _channels) { _logger.Info($"Subscribing to {channel}"); - _wsClient.Send("{\"data\":{\"topics\":[\"video-playback-by-id." + _channels + "\"]},\"nonce\":\"" + Guid.NewGuid() + "\",\"type\":\"LISTEN\"}"); + var payload = "{\"data\":{\"topics\":[\"video-playback-by-id." + channel + "\"]},\"nonce\":\"" + + Guid.NewGuid() + "\",\"type\":\"LISTEN\"}"; + _logger.Debug("Sending the following JSON to Twitch"); + _logger.Debug(payload); + _wsClient.Send(payload); } }