Added Actions & Redemptions updates via websocket messages. Updated RedemptionManager due to live changes.

This commit is contained in:
Tom
2025-01-06 14:36:54 +00:00
parent d74b132c0f
commit 77b37f04b6
14 changed files with 326 additions and 59 deletions

View File

@ -32,7 +32,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
var actions = _redemptionManager.Get("adbreak_begin");
if (!actions.Any())
{
_logger.Debug($"Found {actions.Count} actions for this Twitch ad break");
_logger.Debug($"Found {actions.Count()} actions for this Twitch ad break");
foreach (var action in actions)
try
@ -59,7 +59,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
actions = _redemptionManager.Get("adbreak_end");
if (!actions.Any())
{
_logger.Debug($"Found {actions.Count} actions for this Twitch ad break");
_logger.Debug($"Found {actions.Count()} actions for this Twitch ad break");
foreach (var action in actions)
try

View File

@ -35,7 +35,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
_logger.Debug($"No redeemable actions for this redeem was found [redeem: {message.Reward.Title}][redeem id: {message.Reward.Id}][transaction: {message.Id}]");
return;
}
_logger.Debug($"Found {actions.Count} actions for this Twitch channel point redemption [redeem: {message.Reward.Title}][redeem id: {message.Reward.Id}][transaction: {message.Id}]");
_logger.Debug($"Found {actions.Count()} actions for this Twitch channel point redemption [redeem: {message.Reward.Title}][redeem id: {message.Reward.Id}][transaction: {message.Id}]");
foreach (var action in actions)
try

View File

@ -31,7 +31,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
_logger.Debug($"No redeemable actions for follow was found");
return;
}
_logger.Debug($"Found {actions.Count} actions for this Twitch follow");
_logger.Debug($"Found {actions.Count()} actions for this Twitch follow");
foreach (var action in actions)
try

View File

@ -41,7 +41,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
_logger.Debug($"No redeemable actions for this subscription was found [message: {message.Message.Text}]");
return;
}
_logger.Debug($"Found {actions.Count} actions for this Twitch subscription [message: {message.Message.Text}]");
_logger.Debug($"Found {actions.Count()} actions for this Twitch subscription [message: {message.Message.Text}]");
foreach (var action in actions)
try

View File

@ -35,7 +35,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
_logger.Debug($"No redeemable actions for this gifted subscription was found");
return;
}
_logger.Debug($"Found {actions.Count} actions for this Twitch gifted subscription [gifted: {message.UserLogin}][gifted id: {message.UserId}][Anonymous: {message.IsAnonymous}][cumulative: {message.CumulativeTotal ?? -1}]");
_logger.Debug($"Found {actions.Count()} actions for this Twitch gifted subscription [gifted: {message.UserLogin}][gifted id: {message.UserId}][Anonymous: {message.IsAnonymous}][cumulative: {message.CumulativeTotal ?? -1}]");
foreach (var action in actions)
try

View File

@ -33,7 +33,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
_logger.Debug($"No redeemable actions for this subscription was found [subscriber: {message.UserLogin}][subscriber id: {message.UserId}]");
return;
}
_logger.Debug($"Found {actions.Count} actions for this Twitch subscription [subscriber: {message.UserLogin}][subscriber id: {message.UserId}]");
_logger.Debug($"Found {actions.Count()} actions for this Twitch subscription [subscriber: {message.UserLogin}][subscriber id: {message.UserId}]");
foreach (var action in actions)
try