more fixes
This commit is contained in:
2
stats.js
2
stats.js
@@ -1,7 +1,7 @@
|
|||||||
const index = require("./index.js");
|
const index = require("./index.js");
|
||||||
const fs=require("node:fs");
|
const fs=require("node:fs");
|
||||||
let uptimeObject={};
|
let uptimeObject={};
|
||||||
if(fs.existsSync("./uptime.json")){
|
if(fs.existsSync(__dirname+"/uptime.json")){
|
||||||
try{
|
try{
|
||||||
uptimeObject=JSON.parse(fs.readFileSync(__dirname+"/uptime.json", "utf8"));
|
uptimeObject=JSON.parse(fs.readFileSync(__dirname+"/uptime.json", "utf8"));
|
||||||
}catch{
|
}catch{
|
||||||
|
Reference in New Issue
Block a user