36 lines
966 B
JavaScript
36 lines
966 B
JavaScript
// Debug
|
|
const { DebugBuilder } = require("../utilities/debugBuilder.js");
|
|
const log = new DebugBuilder("client", "configController");
|
|
// Modules
|
|
const { readFileSync } = require('fs');
|
|
const path = require("path");
|
|
require('dotenv').config();
|
|
|
|
const GuildID = process.env.GUILD_ID;
|
|
const ApplicationID = process.env.APPLICATION_ID;
|
|
const DeviceID = parseInt(process.env.AUDIO_DEVICE_ID);
|
|
const DeviceName = process.env.AUDIO_DEVICE_NAME;
|
|
|
|
function getGuildID() {
|
|
log.DEBUG("Guild ID: ", GuildID);
|
|
return GuildID;
|
|
}
|
|
exports.getGuildID = getGuildID;
|
|
|
|
function getApplicationID() {
|
|
log.DEBUG("Application ID: ", ApplicationID);
|
|
return ApplicationID;
|
|
}
|
|
exports.getApplicationID = getApplicationID;
|
|
|
|
function getDeviceID(){
|
|
log.DEBUG("Device ID: ", DeviceID);
|
|
return DeviceID;
|
|
}
|
|
exports.getDeviceID = getDeviceID;
|
|
|
|
function getDeviceName(){
|
|
log.DEBUG("Device Name: ", DeviceName);
|
|
return DeviceName;
|
|
}
|
|
exports.getDeviceName = getDeviceID; |