wow I did it backwards
This commit is contained in:
parent
3b1da591ac
commit
baaf34d7c6
@ -608,7 +608,7 @@ class ChatBot extends Daemon {
|
|||||||
// Add auto-generated schemas with trailing args
|
// Add auto-generated schemas with trailing args
|
||||||
const schemas = registeredCommand.schemas;
|
const schemas = registeredCommand.schemas;
|
||||||
schemas.forEach((schema) => {
|
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) {
|
for (const schema of schemas) {
|
||||||
|
Loading…
Reference in New Issue
Block a user