mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
I'm a retard.
This commit is contained in:
@@ -93,7 +93,11 @@ public class TwitchWs
|
|||||||
foreach (var channel in _channels)
|
foreach (var channel in _channels)
|
||||||
{
|
{
|
||||||
_logger.Info($"Subscribing to {channel}");
|
_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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user