diff --git a/KfChatDotNetKickBot/KickBot.cs b/KfChatDotNetKickBot/KickBot.cs index a767b69..b71865b 100644 --- a/KfChatDotNetKickBot/KickBot.cs +++ b/KfChatDotNetKickBot/KickBot.cs @@ -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 { diff --git a/KfChatDotNetKickBot/Services/TwitchWs.cs b/KfChatDotNetKickBot/Services/Twitch.cs similarity index 97% rename from KfChatDotNetKickBot/Services/TwitchWs.cs rename to KfChatDotNetKickBot/Services/Twitch.cs index 941249d..a300c5f 100644 --- a/KfChatDotNetKickBot/Services/TwitchWs.cs +++ b/KfChatDotNetKickBot/Services/Twitch.cs @@ -6,7 +6,7 @@ using Websocket.Client; namespace KfChatDotNetKickBot.Services; -public class TwitchWs +public class Twitch { private Logger _logger = LogManager.GetCurrentClassLogger(); private WebsocketClient _wsClient; @@ -18,7 +18,7 @@ public class TwitchWs public event OnStreamStateUpdateEventHandler OnStreamStateUpdated; private CancellationToken _cancellationToken = CancellationToken.None; - public TwitchWs(List channels, string? proxy = null, CancellationToken? cancellationToken = null) + public Twitch(List channels, string? proxy = null, CancellationToken? cancellationToken = null) { _proxy = proxy; _channels = channels;