Fixed tts add & delete commands
This commit is contained in:
parent
ed318ca6e8
commit
77465598c1
@ -36,13 +36,13 @@ namespace TwitchChatTTS.Chat.Commands
|
|||||||
{
|
{
|
||||||
b.CreateStaticInputParameter("add", b =>
|
b.CreateStaticInputParameter("add", b =>
|
||||||
{
|
{
|
||||||
b.CreateVoiceNameParameter("voiceName", false)
|
b.CreateUnvalidatedParameter("voiceName")
|
||||||
.CreateCommand(new AddTTSVoiceCommand(_user, _logger));
|
.CreateCommand(new AddTTSVoiceCommand(_user, _logger));
|
||||||
})
|
})
|
||||||
.AddAlias("insert", "add")
|
.AddAlias("insert", "add")
|
||||||
.CreateStaticInputParameter("delete", b =>
|
.CreateStaticInputParameter("delete", b =>
|
||||||
{
|
{
|
||||||
b.CreateVoiceNameParameter("voiceName", true)
|
b.CreateVoiceNameParameter("voiceName", false)
|
||||||
.CreateCommand(new DeleteTTSVoiceCommand(_user, _logger));
|
.CreateCommand(new DeleteTTSVoiceCommand(_user, _logger));
|
||||||
})
|
})
|
||||||
.AddAlias("del", "delete")
|
.AddAlias("del", "delete")
|
||||||
|
Loading…
Reference in New Issue
Block a user