more fixes
This commit is contained in:
parent
9afe4a2b81
commit
c61b55d957
1 changed files with 1 additions and 1 deletions
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{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue