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) {