It doesnt want to use config for some reason. Time to debug stuff
This commit is contained in:
parent
8ca1cc2b8f
commit
b577ff3207
2
app.js
2
app.js
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user