Update logging and location selection for presets
This commit is contained in:
@@ -68,8 +68,9 @@ function convertFrequencyToHertz(frequency){
|
|||||||
* @returns {any} The object containing the different systems the bot is near
|
* @returns {any} The object containing the different systems the bot is near
|
||||||
*/
|
*/
|
||||||
exports.getPresets = function getPresets() {
|
exports.getPresets = function getPresets() {
|
||||||
log.DEBUG(`Getting presets from directory: '${__dirname}'`);
|
const presetDir = path.resolve("./config/radioPresets.json");
|
||||||
return JSON.parse(fs.readFileSync( "./config/radioPresets.json"));
|
log.DEBUG(`Getting presets from directory: '${presetDir}'`);
|
||||||
|
return JSON.parse(fs.readFileSync(presetDir));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user