diff --git a/index.js b/index.js index 4604d38..c273e7e 100644 --- a/index.js +++ b/index.js @@ -84,7 +84,8 @@ app.get('/time.php', (req, res) => { const parts = formatter.formatToParts(date); const get = type => parts.find(p => p.type === type).value; const formatted = `${get('day')}${get('month')}${get('year')}${get('hour')}${get('minute')}${get('second')}`; - res.send(formatted); + const msg = fs.readFileSync(path.join(__dirname, 'msg.html'), 'utf8'); + res.send(`${formatted}

${msg}`); } catch (e) { res.status(400).send('Invalid timezone'); } diff --git a/msg.html b/msg.html new file mode 100644 index 0000000..22db1ca --- /dev/null +++ b/msg.html @@ -0,0 +1,13 @@ + + + + + + Teknikk FA Clock v2 + + + Oh hello there. I'm sure you're wondering why this is alive again. Well, I'm not affiliated with Teknikk sadly, but I did find out the old domain was for sale and snagged it up. I figured hey, why not keep the old time server alive and get rid of those pesky HTTPSERVICE IS REQUIRED messages.

+ My name is Chris by the way, I am the lead dev on a small group called KCA Development. You can pop by our Discord if you want to chat!\n\nI'll keep this up, it doesn't cost me much to run, and I like the idea that some random person on the internet might see the clocks are working again lol

+ - Chris + + \ No newline at end of file