Added Actions & Redemptions updates via websocket messages. Updated RedemptionManager due to live changes.
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user