mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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' }] });
|
||||
|
||||
Reference in New Issue
Block a user