From 7dab6882988a7d3cceac1c8e43aedddedbb5e3fa Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 6 Sep 2025 03:47:45 +0200 Subject: [PATCH] Slice off alpha from imagemagick output --- util/lastfm/getCurrentScrobble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lastfm/getCurrentScrobble.js b/util/lastfm/getCurrentScrobble.js index b503fbb..7c7852a 100644 --- a/util/lastfm/getCurrentScrobble.js +++ b/util/lastfm/getCurrentScrobble.js @@ -72,7 +72,7 @@ module.exports = async function (userID, guild) { if(downloadResult.value === ERROR_CODES.SUCCESS){ const commandArgs = [`${coverFile}.${downloadResult.ext}`, "-resize", "1x1", "txt:-"] let res = executeCommand("magick", commandArgs); - if(!res.error) color = res.output.split("\n")[1].split(" ")[3]; + if(!res.error) color = res.output.split("\n")[1].split(" ")[3].slice(0,7); } const embed = new EmbedBuilder()