presence: thicker bar

This commit is contained in:
Cynthia Foxwell 2025-04-07 14:27:35 -06:00
parent b9292504dc
commit b9a6917cda
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -19,6 +19,7 @@ const HangStatusImages = {};
})();
const NOWPLAYING_BAR_LENGTH = 32;
const NOWPLAYING_BAR_CHAR = "\ud83e\udf79";
function fixMediaProxyURL(url) {
if (url.includes("media.discordapp.net")) {
@ -193,7 +194,7 @@ presence.callback = async function (msg, line) {
const progress = position >= length ? 1 : position / length;
const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
const bar = `\`\`\`ansi\n${"\u2014".repeat(barLength)}\x1b[30m${"\u2014".repeat(
const bar = `\`\`\`ansi\n${NOWPLAYING_BAR_CHAR.repeat(barLength)}\x1b[30m${NOWPLAYING_BAR_CHAR.repeat(
NOWPLAYING_BAR_LENGTH - barLength
)}\x1b[39m`;
const time = `${timePos}${" ".repeat(