mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-03 03:17:54 +01:00
fix /add multi unnamed
This commit is contained in:
parent
d61fbc3992
commit
ab5a6b1c61
@ -1448,7 +1448,7 @@ export function registerVariableCommands() {
|
|||||||
}));
|
}));
|
||||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||||
name: 'add',
|
name: 'add',
|
||||||
callback: addValuesCallback,
|
callback: (args, /**@type {string[]}*/value) => addValuesCallback(args, value.join(' ')),
|
||||||
returns: 'sum of the provided values',
|
returns: 'sum of the provided values',
|
||||||
unnamedArgumentList: [
|
unnamedArgumentList: [
|
||||||
SlashCommandArgument.fromProps({
|
SlashCommandArgument.fromProps({
|
||||||
@ -1460,6 +1460,7 @@ export function registerVariableCommands() {
|
|||||||
forceEnum: false,
|
forceEnum: false,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
splitUnnamedArgument: true,
|
||||||
helpString: `
|
helpString: `
|
||||||
<div>
|
<div>
|
||||||
Performs an addition of the set of values and passes the result down the pipe.
|
Performs an addition of the set of values and passes the result down the pipe.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user