From 478711815f1fc461145f86aca6a291869c1efbdd Mon Sep 17 00:00:00 2001 From: tgpethan Date: Fri, 3 Jan 2020 05:32:48 +0000 Subject: [PATCH] Package fix again Turns out my solution sucks --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8986bf0..e7c50c5 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ const requiredModules = [ ]; let config; if (fs.existsSync("./config/config.json")) { - config = require("./config/config.json"); + config = JSON.parse(fs.readFileSync("./config/config.json")); } else { console.log("[Config] Config file doesn't exist! You probably haven't copied the example config in the config directory."); console.log("[Config] Exiting..."); -- 2.45.2