mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix images being too large... kind of
This commit is contained in:
@@ -46,6 +46,6 @@ module.exports = class AnimeEyesCommand extends Command {
|
||||
ctx.drawImage(rightEye, leftEyeX, leftEyeY, eyeWidth, eyeHeight);
|
||||
ctx.drawImage(leftEye, rightEyeX, rightEyeY, eyeWidth, eyeHeight);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'anime-eyes.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/jpeg'), name: 'anime-eyes.jpeg' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user