2024-08-04 19:46:10 -04:00
|
|
|
using TwitchChatTTS.Twitch.Socket.Messages;
|
|
|
|
|
2024-07-19 12:56:41 -04:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2024-08-04 19:46:10 -04:00
|
|
|
public override bool Validate(string value, ChannelChatMessage message)
|
2024-07-19 12:56:41 -04:00
|
|
|
{
|
|
|
|
return _value == value.ToLower();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|