anonradio: add timestamp

This commit is contained in:
Cynthia Foxwell 2022-12-21 09:03:53 -07:00
parent b2c32b880b
commit 8d433ef6f7

View file

@ -101,7 +101,10 @@ async function updateNowPlaying() {
} }
} }
const content = `${title}\n${subtitle}\n${openmicTime}`.trim(); const now = Date.now();
const timestamp = `<t:${Math.floor(now/1000)}:T>`;
const content = `${timestamp}\n${title}\n${subtitle}\n${openmicTime}`.trim();
const thread = hf.bot.guilds.get(GUILD_ID).threads.get(THREAD_ID); const thread = hf.bot.guilds.get(GUILD_ID).threads.get(THREAD_ID);
if (thread) { if (thread) {
const msg = await thread.getMessage(MESSAGE_ID); const msg = await thread.getMessage(MESSAGE_ID);