Package fix again #14

Merged
tgpholly merged 1 commit from nexe-package-fix2 into master 2020-01-04 05:14:25 +00:00
Showing only changes of commit 478711815f - Show all commits

View file

@ -13,7 +13,7 @@ const requiredModules = [
]; ];
let config; let config;
if (fs.existsSync("./config/config.json")) { if (fs.existsSync("./config/config.json")) {
config = require("./config/config.json"); config = JSON.parse(fs.readFileSync("./config/config.json"));
} else { } else {
console.log("[Config] Config file doesn't exist! You probably haven't copied the example config in the config directory."); console.log("[Config] Config file doesn't exist! You probably haven't copied the example config in the config directory.");
console.log("[Config] Exiting..."); console.log("[Config] Exiting...");