diff --git a/Chat/Messaging/ChatMessageReader.cs b/Chat/Messaging/ChatMessageReader.cs index 4e75472..60885ea 100644 --- a/Chat/Messaging/ChatMessageReader.cs +++ b/Chat/Messaging/ChatMessageReader.cs @@ -62,7 +62,7 @@ namespace TwitchChatTTS.Chat.Messaging var emoteUsage = GetEmoteUsage(fragments); var tasks = new List(); - if (_obs.Streaming) + if (_obs.Streaming && _configuration.Twitch?.Slave != true) { if (emoteUsage.NewEmotes.Any()) tasks.Add(_hermes.SendEmoteDetails(emoteUsage.NewEmotes)); diff --git a/Configuration.cs b/Configuration.cs index fcd8a32..6361794 100644 --- a/Configuration.cs +++ b/Configuration.cs @@ -14,8 +14,8 @@ namespace TwitchChatTTS } public class TwitchConfiguration { - public IEnumerable? Channels; public bool TtsWhenOffline; + public bool Slave; public string? WebsocketUrl; public string? ApiUrl; } diff --git a/TTS.cs b/TTS.cs index 1577af2..b82133d 100644 --- a/TTS.cs +++ b/TTS.cs @@ -89,9 +89,10 @@ namespace TwitchChatTTS var hermesVersion = await _hermesApiClient.GetLatestTTSVersion(); if (hermesVersion == null) { - _logger.Warning("Failed to fetch latest TTS version. Skipping version check."); + _logger.Error("Failed to fetch latest TTS version. Something went wrong."); + return; } - else if (hermesVersion.MajorVersion > TTS.MAJOR_VERSION || hermesVersion.MajorVersion == TTS.MAJOR_VERSION && hermesVersion.MinorVersion > TTS.MINOR_VERSION) + if (hermesVersion.MajorVersion > TTS.MAJOR_VERSION || hermesVersion.MajorVersion == TTS.MAJOR_VERSION && hermesVersion.MinorVersion > TTS.MINOR_VERSION) { _logger.Information($"A new update for TTS is avaiable! Version {hermesVersion.MajorVersion}.{hermesVersion.MinorVersion} is available at {hermesVersion.Download}"); var changes = hermesVersion.Changelog.Split("\n");