Add Command for trigger

This commit is contained in:
kwaroran
2024-04-10 09:36:28 +09:00
parent 410eaf6de1
commit 0d57392feb
3 changed files with 24 additions and 1 deletions

View File

@@ -211,12 +211,20 @@
value: ''
}
}
if(effect.type === 'command'){
effect = {
type: 'command',
value: ''
}
}
}}>
{#if effect.type === 'systemprompt' || value.type === 'start'}
<OptionInput value="systemprompt">{language.triggerEffSysPrompt}</OptionInput>
{/if}
<OptionInput value="setvar">{language.triggerEffSetVar}</OptionInput>
<OptionInput value="impersonate">{language.triggerEffImperson}</OptionInput>
<OptionInput value="command">{language.triggerEffCommand}</OptionInput>
</SelectInput>
{#if effect.type === 'systemprompt'}
{#if value.type !== 'start'}
@@ -245,6 +253,11 @@
<span class="text-textcolor2 text-sm">{language.value}</span>
<TextInput size="sm" bind:value={effect.value} />
{/if}
{#if effect.type === 'command'}
<span class="text-textcolor2 text-sm">{language.value}</span>
<TextAreaInput size="sm" bind:value={effect.value} />
{/if}
{#if effect.type === 'impersonate'}
<span class="text-textcolor2 text-sm">{language.role}</span>
<SelectInput bind:value={effect.role} size="sm">