I'm a retard.

This commit is contained in:
barelyprofessional
2024-06-17 19:46:26 +08:00
parent 8d28733309
commit d470e64979

View File

@@ -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);
}
}