diff --git a/public/scripts/extensions/caption/index.js b/public/scripts/extensions/caption/index.js index f197ba154..9de9b6d87 100644 --- a/public/scripts/extensions/caption/index.js +++ b/public/scripts/extensions/caption/index.js @@ -497,6 +497,7 @@ jQuery(function () { SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'caption', callback: captionCommandCallback, + returns: 'caption', namedArgumentList: [ new SlashCommandNamedArgument( 'quiet', 'suppress sending a captioned message', [ARGUMENT_TYPE.BOOLEAN], false, false, 'false', ['true', 'false'], diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index abe3bf249..7d7f72caa 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -1994,6 +1994,7 @@ function migrateSettings() { })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'lastsprite', callback: (_, value) => lastExpression[value.trim()] ?? '', + returns: 'sprite' unnamedArgumentList: [ new SlashCommandArgument( 'charName', [ARGUMENT_TYPE.STRING], true, diff --git a/public/scripts/extensions/gallery/index.js b/public/scripts/extensions/gallery/index.js index c1a7089f5..42c366581 100644 --- a/public/scripts/extensions/gallery/index.js +++ b/public/scripts/extensions/gallery/index.js @@ -428,6 +428,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'show-gallery SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery', aliases: ['lg'], callback: listGalleryCommand, + returns: 'list of images', namedArgumentList: [ new SlashCommandNamedArgument( 'char', 'character name', [ARGUMENT_TYPE.STRING], false, diff --git a/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js b/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js index c22782103..7b81bbf40 100644 --- a/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js +++ b/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js @@ -122,6 +122,7 @@ export class SlashCommandHandler { })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'qr-set-list', callback: (_, value) => this.listSets(value ?? 'all'), + returns: 'list of QR sets', namedArgumentList: [], unnamedArgumentList: [ new SlashCommandArgument( @@ -132,6 +133,7 @@ export class SlashCommandHandler { })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'qr-list', callback: (_, value) => this.listQuickReplies(value), + returns: 'list of QRs', namedArgumentList: [], unnamedArgumentList: [ new SlashCommandArgument( diff --git a/public/scripts/extensions/regex/index.js b/public/scripts/extensions/regex/index.js index fd4714154..9e36ef3ce 100644 --- a/public/scripts/extensions/regex/index.js +++ b/public/scripts/extensions/regex/index.js @@ -358,6 +358,7 @@ jQuery(async () => { SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'regex', callback: runRegexCallback, + returns: 'replaced text', namedArgumentList: [ new SlashCommandNamedArgument( 'name', 'script name', [ARGUMENT_TYPE.STRING], true, diff --git a/public/scripts/extensions/token-counter/index.js b/public/scripts/extensions/token-counter/index.js index 91c6f32ef..e7c7ad9a8 100644 --- a/public/scripts/extensions/token-counter/index.js +++ b/public/scripts/extensions/token-counter/index.js @@ -135,6 +135,7 @@ jQuery(() => { $('#token_counter').on('click', doTokenCounter); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'count', callback: doCount, + returns: 'number of tokens', helpString: 'Counts the number of tokens in the current chat.', interruptsGeneration: true, purgeFromMessage: false, diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 6682568d9..3b5057b7d 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -4297,6 +4297,7 @@ function runProxyCallback(_, value) { SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'proxy', callback: runProxyCallback, + returns: 'current proxy', namedArgumentList: [], unnamedArgumentList: [ new SlashCommandArgument( diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js index fed2dc571..ff7bbc82e 100644 --- a/public/scripts/preset-manager.js +++ b/public/scripts/preset-manager.js @@ -475,6 +475,7 @@ export async function initPresetManager() { registerPresetManagers(); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'preset', callback: presetCommandCallback, + returns: 'current preset', namedArgumentList: [], unnamedArgumentList: [ new SlashCommandArgument( diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 7199d29e2..475f6e435 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -619,6 +619,7 @@ function registerWorldInfoSlashCommands() { })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'getchatbook', callback: getChatBookCallback, + returns: 'lorebook name', helpString: 'Get a name of the chat-bound lorebook or create a new one if was unbound, and pass it down the pipe.', aliases: ['getchatlore', 'getchatwi'], interruptsGeneration: true, @@ -626,6 +627,7 @@ function registerWorldInfoSlashCommands() { })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'findentry', aliases: ['findlore', 'findwi'], + returns: 'UID', callback: findBookEntryCallback, namedArgumentList: [ new SlashCommandNamedArgument( @@ -659,6 +661,7 @@ function registerWorldInfoSlashCommands() { SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'getentryfield', aliases: ['getlorefield', 'getwifield'], callback: getEntryFieldCallback, + returns: 'field value', namedArgumentList: [ new SlashCommandNamedArgument( 'file', 'bookName', ARGUMENT_TYPE.STRING, true,