From 82a09d2febee7503b950f15c1d24d12595d0f9e0 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Fri, 23 Jun 2023 20:21:01 +0900 Subject: [PATCH] batched slash commands --- public/scripts/slash-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 1991fe9a6..58d8e1c5e 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -272,7 +272,7 @@ function executeSlashCommands(text) { // Hack to allow multi-line slash commands // All slash command messages should begin with a slash - const lines = [text]; + const lines = text.split('|').map(line => line.trim()); const linesToRemove = []; let interrupt = false;