1
0
Fork 0

loading message

akairo
loicbersier 5 years ago
parent 0073d3c76d
commit f981b51247

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

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

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

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

Loading…
Cancel
Save