feature/implement-bot-into-client-core #2

Merged
logan merged 42 commits from feature/implement-bot-into-client-core into master 2023-05-06 14:45:00 -04:00
Showing only changes of commit 7b821687a9 - Show all commits

View File

@@ -68,8 +68,9 @@ function convertFrequencyToHertz(frequency){
* @returns {any} The object containing the different systems the bot is near
*/
exports.getPresets = function getPresets() {
log.DEBUG(`Getting presets from directory: '${__dirname}'`);
return JSON.parse(fs.readFileSync( "./config/radioPresets.json"));
const presetDir = path.resolve("./config/radioPresets.json");
log.DEBUG(`Getting presets from directory: '${presetDir}'`);
return JSON.parse(fs.readFileSync(presetDir));
}
/**