This commit is contained in:
Dragon Fire
2024-03-23 21:38:43 -04:00
parent 672ac9cbe9
commit c22f80e140
+4 -4
View File
@@ -47,10 +47,10 @@ module.exports = class DannyDevitoCommand extends Command {
const height = danny.height * ratio;
ctx.drawImage(
danny,
face.box.xMin - (face.box.width * 0.25),
face.box.yMin - (height / 2) - (height * 0.25),
face.box.width * 1.5,
height * 1.5
face.box.xMin - (face.box.width * 0.5),
face.box.yMin - (height / 2) - (height * 0.5),
face.box.width * 1.25,
height * 1.25
);
}
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'danny-devito.png' }] });