anonradio: add timestamp
This commit is contained in:
parent
b2c32b880b
commit
8d433ef6f7
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue