From c61b55d957dd4464fe35530f0e05c7d8c63506e1 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Mon, 16 Sep 2024 18:48:47 -0500 Subject: [PATCH] more fixes --- stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.js b/stats.js index 0200a65..1ccf0fe 100644 --- a/stats.js +++ b/stats.js @@ -1,7 +1,7 @@ const index = require("./index.js"); const fs=require("node:fs"); let uptimeObject={}; -if(fs.existsSync("./uptime.json")){ +if(fs.existsSync(__dirname+"/uptime.json")){ try{ uptimeObject=JSON.parse(fs.readFileSync(__dirname+"/uptime.json", "utf8")); }catch{