Slice off alpha from imagemagick output
All checks were successful
CI / CI (push) Successful in 22s

This commit is contained in:
SileNce5k 2025-09-06 03:47:45 +02:00
commit 7dab688298
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -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()