mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 05:51:42 +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' }] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -51,6 +51,6 @@ module.exports = class DannyDevitoCommand extends Command {
|
||||
height * 1.4
|
||||
);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'danny-devito.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/jpeg'), name: 'danny-devito.jpeg' }] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -62,6 +62,6 @@ module.exports = class EmojiFaceCommand extends Command {
|
||||
height * 1.4
|
||||
);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'emoji-face.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/jpeg'), name: 'emoji-face.jpeg' }] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -44,6 +44,6 @@ module.exports = class EyesCommand extends Command {
|
||||
ctx.drawImage(eyes, leftEyeX, leftEyeY, eyeWidth, eyeHeight);
|
||||
ctx.drawImage(eyes, rightEyeX, rightEyeY, eyeWidth, eyeHeight);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'eyes.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/jpeg'), name: 'eyes.jpeg' }] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -51,6 +51,6 @@ module.exports = class ShrekCommand extends Command {
|
||||
height * 1.5
|
||||
);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'shrek.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/jpeg'), name: 'shrek.jpeg' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user