It doesnt want to use config for some reason. Time to debug stuff

This commit is contained in:
MrMasrozYTLIVE 2024-06-09 09:54:30 +03:00
parent 8ca1cc2b8f
commit b577ff3207

2
app.js
View File

@ -96,8 +96,10 @@ async function initialize() {
}
const configExists = fs.existsSync("./config.json");
console.log("Config exists:", configExists)
if (configExists) {
readConfigFromFile("./config.json");
console.log("Config:", config)
config.rooms.forEach(room => {
addRoomToList(room);
});