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,6 +1,8 @@
|
||||
using TwitchChatTTS.Twitch.Socket.Messages;
|
||||
|
||||
namespace TwitchChatTTS.Chat.Commands.Parameters
|
||||
{
|
||||
public abstract class CommandParameter : ICloneable
|
||||
public abstract class CommandParameter
|
||||
{
|
||||
public string Name { get; }
|
||||
public bool Optional { get; }
|
||||
@ -11,10 +13,6 @@ namespace TwitchChatTTS.Chat.Commands.Parameters
|
||||
Optional = optional;
|
||||
}
|
||||
|
||||
public abstract bool Validate(string value);
|
||||
|
||||
public object Clone() {
|
||||
return (CommandParameter) MemberwiseClone();
|
||||
}
|
||||
public abstract bool Validate(string value, ChannelChatMessage message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user