From baaf34d7c6ebfd2693db66ffaa53fcb8ce778acb Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 6 Sep 2019 21:43:43 -0700 Subject: [PATCH] wow I did it backwards --- bundles/chatbot/daemons/chatbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/chatbot/daemons/chatbot.js b/bundles/chatbot/daemons/chatbot.js index 8b4859f..d422a55 100644 --- a/bundles/chatbot/daemons/chatbot.js +++ b/bundles/chatbot/daemons/chatbot.js @@ -608,7 +608,7 @@ class ChatBot extends Daemon { // Add auto-generated schemas with trailing args const schemas = registeredCommand.schemas; schemas.forEach((schema) => { - schemas.push([...schema.filter(commandArg => commandArg.name !== undefined), ...schema.filter(commandArg => commandArg.name === undefined)]); + schemas.push([...schema.filter(commandArg => commandArg.name === undefined), ...schema.filter(commandArg => commandArg.name !== undefined)]); }); for (const schema of schemas) {