Fixed calls for local exported functions configHandler
This commit is contained in:
@@ -10,7 +10,7 @@ exports.getConfig = function getConfig() {
|
||||
}
|
||||
|
||||
exports.getGuildID = function getGuildID() {
|
||||
const parsedJSON = getConfig();
|
||||
const parsedJSON = this.getConfig();
|
||||
const guildID = parsedJSON.GuildID;
|
||||
|
||||
log.DEBUG("Guild ID: ", guildID);
|
||||
@@ -18,7 +18,7 @@ exports.getGuildID = function getGuildID() {
|
||||
}
|
||||
|
||||
exports.getApplicationID = function getApplicationID() {
|
||||
const parsedJSON = getConfig();
|
||||
const parsedJSON = this.getConfig();
|
||||
const appID = parsedJSON.ApplicationID;
|
||||
|
||||
log.DEBUG("Application ID: ", appID);
|
||||
@@ -26,7 +26,7 @@ exports.getApplicationID = function getApplicationID() {
|
||||
}
|
||||
|
||||
exports.getDeviceID = function getDeviceID(){
|
||||
const parsedJSON = getConfig();
|
||||
const parsedJSON = this.getConfig();
|
||||
const deviceID = parseInt(parsedJSON.DeviceID);
|
||||
|
||||
log.DEBUG("Device ID: ", deviceID);
|
||||
@@ -34,7 +34,7 @@ exports.getDeviceID = function getDeviceID(){
|
||||
}
|
||||
|
||||
exports.getDeviceName = function getDeviceName(){
|
||||
const parsedJSON = getConfig();
|
||||
const parsedJSON = this.getConfig();
|
||||
const deviceName = parsedJSON.DeviceName;
|
||||
|
||||
log.DEBUG("Device Name: ", deviceName);
|
||||
|
||||
Reference in New Issue
Block a user