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