Fixed command permissions. Moved to using Twitch's EventSub via websockets. Cleaned some code up. Added detection for subscription messages (no TTS), message deletion, full or partial chat clear. Removes messages from TTS queue if applicable. Added command aliases for static parameters. Word filters use compiled regex if possible. Fixed TTS voice deletion.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
using TwitchChatTTS.Twitch.Socket.Messages;
|
||||
|
||||
namespace TwitchChatTTS.Chat.Commands.Parameters
|
||||
{
|
||||
public class StateParameter : CommandParameter
|
||||
@ -8,7 +10,7 @@ namespace TwitchChatTTS.Chat.Commands.Parameters
|
||||
{
|
||||
}
|
||||
|
||||
public override bool Validate(string value)
|
||||
public override bool Validate(string value, ChannelChatMessage message)
|
||||
{
|
||||
return _values.Contains(value.ToLower());
|
||||
}
|
||||
|
Reference in New Issue
Block a user