Merge pull request 'random' (#18) from dev into origin

Reviewed-on: https://codeberg.orgBingus_Violet/Violets-Purgatory#18
This commit is contained in:
Bingus_Violet 2024-01-26 17:25:21 +00:00
commit 5ee8f8b8bf
2 changed files with 5 additions and 5 deletions

View file

@ -49,7 +49,9 @@
"Please check out <a href='https://api.violets-purgatory.dev'>the api for this site</a> :3", "Please check out <a href='https://api.violets-purgatory.dev'>the api for this site</a> :3",
"Please check out the <a href='https://beta.violets-purgatory.dev'>beta</a>!", "Please check out the <a href='https://beta.violets-purgatory.dev'>beta</a>!",
"Simpletube? Hah, I hardly remember her... its been a long time hasn't it... Maybe i'll return to it one day soon...", "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 <em>REALLY</em> need an image cache :/" "Okay I <em>REALLY</em> need an image cache :/",
"You know... I was a Roblox Developer Once...",
"I used to love Star Glitcher games"
], ],
"thumborInstances": [ "thumborInstances": [

View file

@ -13,8 +13,6 @@ const resourcePath = path.join(__dirname, 'resources')
const mainpage = resourcePath + '/mainPage.html' const mainpage = resourcePath + '/mainPage.html'
var lanyardData = undefined var lanyardData = undefined
var discData = null
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json'))) var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json')))
var thumborInstances = config.thumborInstances var thumborInstances = config.thumborInstances
@ -51,8 +49,8 @@ function gameTimeFormatter(seconds) {
seconds = Math.ceil(seconds) seconds = Math.ceil(seconds)
var minutes = Math.ceil(seconds / 60) var minutes = Math.ceil(seconds / 60)
var hours = Math.floor(minutes / 60) var hours = Math.floor(minutes / 60)
if (seconds < 60) { if (seconds <= 60) {
return 'Under a minute ago' return 'Under a minute'
} else if (minutes < 60) { } else if (minutes < 60) {
return `${minutes} Minutes` return `${minutes} Minutes`
} }