Renamed TwitchWs to Twitch as I intend to add a non-WS related helper function for checking if a stream is live using Graph QL

This commit is contained in:
barelyprofessional
2024-06-19 10:46:17 +08:00
parent 1c08231e7c
commit 980a2b1c98
2 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ public class KickBot
// Suppresses the command handler on initial start, so it doesn't pick up things already handled on restart
private bool _initialStartCooldown = true;
private readonly CancellationToken _cancellationToken = new();
private readonly TwitchWs _twitchWs;
private readonly Twitch _twitch;
public KickBot()
{
@@ -81,9 +81,9 @@ public class KickBot
if (_config.BossmanJackTwitchId != null)
{
_logger.Debug("Creating Twitch live stream notification client");
_twitchWs = new TwitchWs([_config.BossmanJackTwitchId.Value], _config.Proxy, _cancellationToken);
_twitchWs.OnStreamStateUpdated += OnTwitchStreamStateUpdated;
_twitchWs.StartWsClient().Wait(_cancellationToken);
_twitch = new Twitch([_config.BossmanJackTwitchId.Value], _config.Proxy, _cancellationToken);
_twitch.OnStreamStateUpdated += OnTwitchStreamStateUpdated;
_twitch.StartWsClient().Wait(_cancellationToken);
}
else
{