From 65f2cc1952b23501201463d1b523575f8067de39 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Thu, 7 Dec 2023 18:29:28 +0000 Subject: [PATCH] add a comment slash commend /# for commenting longer ST scripts --- public/scripts/slash-commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 8588154c0..5cf15ad89 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -166,6 +166,7 @@ parser.addCommand('memberdown', moveGroupMemberDownCallback, ['downmember'], '(message index or range) – shows a group member character card without switching chats', true, true); parser.addCommand('delswipe', deleteSwipeCallback, ['swipedel'], '(optional 1-based id) – deletes a swipe from the last chat message. If swipe id not provided - deletes the current swipe.', true, true); parser.addCommand('echo', echoCallback, [], '(title=string severity=info/warning/error/success [text]) – echoes the text to toast message. Useful for pipes debugging.', true, true); +parser.addCommand('#', (_, value) => undefined, [], ' – a comment, does nothing, e.g. /# the next three commands switch variables a and b', true, true); // '(text) – echoes the text to toast message. Useful for pipes debugging.', true, true); parser.addCommand('gen', generateCallback, [], '(lock=on/off [prompt]) – generates text using the provided prompt and passes it to the next command through the pipe, optionally locking user input while generating.', true, true); parser.addCommand('genraw', generateRawCallback, [], '(lock=on/off [prompt]) – generates text using the provided prompt and passes it to the next command through the pipe, optionally locking user input while generating. Does not include chat history or character card. Use instruct=off to skip instruct formatting, e.g. /genraw instruct=off Why is the sky blue?. Use stop=... with a JSON-serialized array to add one-time custom stop strings, e.g. /genraw stop=["\\n"] Say hi', true, true);