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");
|
||||
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