wrapping up join command

- API untested
This commit is contained in:
Logan Cusano
2023-06-03 23:00:50 -04:00
parent 5c8414b4d8
commit fa2f28207e
4 changed files with 30 additions and 47 deletions

View File

@@ -42,45 +42,5 @@ exports.customSlashCommandBuilder = class customSlashCommandBuilder extends Slas
return this;
}
/*
return new class extends SlashCommandStringOption {
constructor() {
super();
getAllNodes((nodeObjects) => {
this.name = "preset"
this.required = "false"
var presetsAvailable = [];
for (const nodeObject of nodeObjects) {
nodeObject.nearbySystems = BufferToJson(nodeObject.nearbySystems);
log.DEBUG("Node object: ", nodeObject);
for (const presetName in nodeObject.nearbySystems) presetsAvailable.push(nodeObject.nearbySystems[presetName]);
}
log.DEBUG("All Presets available: ", presetsAvailable);
// Remove duplicates
presetsAvailable = [...new Set(presetsAvailable)];
log.DEBUG("DeDuped Presets available: ", presetsAvailable);
var choicesList = []
for (const preset of presetsAvailable){
log.DEBUG("Preset: ", preset);
choicesList.push({
name: preset,
value: preset
})
}
log.DEBUG("Choice List: ", choicesList);
this.choices = JSON.stringify(choicesList);
return this;
});
}
}
*/
}