presence: thicker bar
This commit is contained in:
parent
b9292504dc
commit
b9a6917cda
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue