This commit is contained in:
Dragon Fire
2020-06-29 13:27:30 -04:00
parent 87c67b202f
commit f9f03ea92e
+1
View File
@@ -32,6 +32,7 @@ module.exports = class MagikCommand extends Command {
const magik = gm(body, 'magik.png');
magik.out('-liquid-rescale 75%x75%');
magik.implode(0.25);
magik.setFormat('png');
const attachment = await this.toBuffer(magik);
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
return msg.say({ files: [{ attachment, name: 'magik.png' }] });