Added slave client in configuration.
This commit is contained in:
parent
893cd6f192
commit
ea0550e99f
@ -62,7 +62,7 @@ namespace TwitchChatTTS.Chat.Messaging
|
|||||||
|
|
||||||
var emoteUsage = GetEmoteUsage(fragments);
|
var emoteUsage = GetEmoteUsage(fragments);
|
||||||
var tasks = new List<Task>();
|
var tasks = new List<Task>();
|
||||||
if (_obs.Streaming)
|
if (_obs.Streaming && _configuration.Twitch?.Slave != true)
|
||||||
{
|
{
|
||||||
if (emoteUsage.NewEmotes.Any())
|
if (emoteUsage.NewEmotes.Any())
|
||||||
tasks.Add(_hermes.SendEmoteDetails(emoteUsage.NewEmotes));
|
tasks.Add(_hermes.SendEmoteDetails(emoteUsage.NewEmotes));
|
||||||
|
@ -14,8 +14,8 @@ namespace TwitchChatTTS
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class TwitchConfiguration {
|
public class TwitchConfiguration {
|
||||||
public IEnumerable<string>? Channels;
|
|
||||||
public bool TtsWhenOffline;
|
public bool TtsWhenOffline;
|
||||||
|
public bool Slave;
|
||||||
public string? WebsocketUrl;
|
public string? WebsocketUrl;
|
||||||
public string? ApiUrl;
|
public string? ApiUrl;
|
||||||
}
|
}
|
||||||
|
5
TTS.cs
5
TTS.cs
@ -89,9 +89,10 @@ namespace TwitchChatTTS
|
|||||||
var hermesVersion = await _hermesApiClient.GetLatestTTSVersion();
|
var hermesVersion = await _hermesApiClient.GetLatestTTSVersion();
|
||||||
if (hermesVersion == null)
|
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}");
|
_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");
|
var changes = hermesVersion.Changelog.Split("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user