hermes-client/Chat/Commands/Parameters/StaticParameter.cs

21 lines
559 B
C#

using TwitchChatTTS.Twitch.Socket.Messages;
namespace TwitchChatTTS.Chat.Commands.Parameters
{
public class StaticParameter : CommandParameter
{
private readonly string _value;
public string Value { get => _value; }
public StaticParameter(string name, string value, bool optional = false) : base(name, optional)
{
_value = value.ToLower();
}
public override bool Validate(string value, ChannelChatMessage message)
{
return _value == value.ToLower();
}
}
}