moar quotes

This commit is contained in:
Violet 2024-01-26 17:20:50 +00:00 committed by GitHub
parent 193210c7d3
commit c74947a11c
2 changed files with 7 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 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...",
"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": [

View file

@ -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`
}