Working on Config system (Saving & Loading user data) #3
2
app.js
2
app.js
@ -96,8 +96,10 @@ async function initialize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const configExists = fs.existsSync("./config.json");
|
const configExists = fs.existsSync("./config.json");
|
||||||
|
console.log("Config exists:", configExists)
|
||||||
if (configExists) {
|
if (configExists) {
|
||||||
readConfigFromFile("./config.json");
|
readConfigFromFile("./config.json");
|
||||||
|
console.log("Config:", config)
|
||||||
config.rooms.forEach(room => {
|
config.rooms.forEach(room => {
|
||||||
addRoomToList(room);
|
addRoomToList(room);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user