Merge pull request #14 from tgpethan/nexe-package-fix2

Package fix again
This commit is contained in:
Ethan Stubbs 2020-01-04 05:14:24 +00:00 committed by GitHub
commit 9aba8a8583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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