|
|
@ -32,6 +32,8 @@ class autocropCommand extends Command {
|
|
|
|
url = Attachment[0].url;
|
|
|
|
url = Attachment[0].url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let loadingmsg = await message.channel.send('Processing <a:loadingmin:527579785212329984>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jimp.read({
|
|
|
|
jimp.read({
|
|
|
|
url: url
|
|
|
|
url: url
|
|
|
@ -42,6 +44,7 @@ class autocropCommand extends Command {
|
|
|
|
.write(output);
|
|
|
|
.write(output);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
loadingmsg.delete();
|
|
|
|
return message.channel.send({files: [output]});
|
|
|
|
return message.channel.send({files: [output]});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|