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