diff --git a/public/script.js b/public/script.js index 71bea47cd..ec4e48755 100644 --- a/public/script.js +++ b/public/script.js @@ -346,6 +346,7 @@ const system_message_types = { SLASH_COMMANDS: "slash_commands", FORMATTING: "formatting", HOTKEYS: "hotkeys", + MACROS: "macros", }; const extension_prompt_types = { @@ -366,6 +367,7 @@ const system_messages = {
  • Slash Commands (or /help slash)
  • Formatting (or /help format)
  • Hotkeys (or /help hotkeys)
  • +
  • {{Macros}} (or /help macros)

  • Still got questions left? The Official SillyTavern Documentation Website has much more information!` ] @@ -420,6 +422,23 @@ const system_messages = { ` ] }, + macros: { + name: systemUserName, + force_avatar: system_avatar, + is_user: false, + is_system: true, + is_name: true, + mes: [ + `System-wide Replacement Macros: + ` + ] + }, welcome: { name: systemUserName, diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 33c83f06f..2020f9df9 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -343,6 +343,10 @@ function helpCommandCallback(_, type) { case '3': sendSystemMessage(system_message_types.HOTKEYS); break; + case 'macros': + case '4': + sendSystemMessage(system_message_types.MACROS); + break; default: sendSystemMessage(system_message_types.HELP); break;