From c74947a11c84e30828431b48e040b48a6dc8773f Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 26 Jan 2024 17:20:50 +0000 Subject: [PATCH 1/2] moar quotes --- config.json | 4 +++- index.js | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.json b/config.json index 7cbff45..5db5a88 100644 --- a/config.json +++ b/config.json @@ -49,7 +49,9 @@ "Please check out the api for this site :3", "Please check out the beta!", "Simpletube? Hah, I hardly remember her... its been a long time hasn't it... Maybe i'll return to it one day soon...", - "Okay I REALLY need an image cache :/" + "Okay I REALLY need an image cache :/", + "You know... I was a Roblox Developer Once...", + "I used to love Star Glitcher games" ], "thumborInstances": [ diff --git a/index.js b/index.js index 79a66be..44e26b7 100644 --- a/index.js +++ b/index.js @@ -10,11 +10,11 @@ const PORT = process.env.PORT || 8080 const staticpath = path.join(__dirname, 'static') const resourcePath = path.join(__dirname, 'resources') + + const mainpage = resourcePath + '/mainPage.html' var lanyardData = undefined -var discData = null - var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json'))) var thumborInstances = config.thumborInstances @@ -51,8 +51,8 @@ function gameTimeFormatter(seconds) { seconds = Math.ceil(seconds) var minutes = Math.ceil(seconds / 60) var hours = Math.floor(minutes / 60) - if (seconds < 60) { - return 'Under a minute ago' + if (seconds <= 60) { + return 'Under a minute' } else if (minutes < 60) { return `${minutes} Minutes` } From 1e533d90c050db104d09a9302fa7104c41cd5dc0 Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 26 Jan 2024 17:21:03 +0000 Subject: [PATCH 2/2] whitespace --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index 44e26b7..7557c2d 100644 --- a/index.js +++ b/index.js @@ -10,8 +10,6 @@ const PORT = process.env.PORT || 8080 const staticpath = path.join(__dirname, 'static') const resourcePath = path.join(__dirname, 'resources') - - const mainpage = resourcePath + '/mainPage.html' var lanyardData = undefined