Generalized the ChatMessageReader to make it work with ChannelResubscrition. Added connections refresh command.

This commit is contained in:
Tom
2024-08-12 19:45:17 +00:00
parent f503f7c6f4
commit 1d43515fb9
18 changed files with 182 additions and 135 deletions

View File

@ -8,9 +8,9 @@ namespace TwitchChatTTS.Chat.Commands.Parameters
{
}
public override bool Validate(string value, ChannelChatMessage message)
public override bool Validate(string value, TwitchChatFragment[] fragments)
{
return value.StartsWith('@') && message.Message.Fragments.Any(f => f.Text == value && f.Mention != null);
return value.StartsWith('@') && fragments.Any(f => f.Text == value && f.Mention != null);
}
}
}