diff --git a/src/modules/anonradio.js b/src/modules/anonradio.js index 987fa0e..d0a5943 100644 --- a/src/modules/anonradio.js +++ b/src/modules/anonradio.js @@ -108,7 +108,7 @@ async function updateNowPlaying() { const thread = hf.bot.guilds.get(GUILD_ID)?.threads.get(THREAD_ID); if (thread) { const msg = await thread.getMessage(MESSAGE_ID); - const oldContent = msg.content.replace(/\n/,""); + const oldContent = msg.content.replace(//,"").trim(); if (oldContent !== content) { await thread.editMessage(MESSAGE_ID, {content: timestamp + "\n" + content}); }