wow I did it backwards

This commit is contained in:
notgne2 2019-09-06 21:43:43 -07:00
parent 3b1da591ac
commit baaf34d7c6

View File

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