loading message
This commit is contained in:
parent
0073d3c76d
commit
f981b51247
4 changed files with 10 additions and 0 deletions
|
@ -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]});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@ class jpegifyCommand 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
|
||||||
})
|
})
|
||||||
|
@ -41,6 +43,7 @@ class jpegifyCommand extends Command {
|
||||||
.write(output);
|
.write(output);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
loadingmsg.delete();
|
||||||
return message.channel.send({files: [output]});
|
return message.channel.send({files: [output]});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ class mirrorCommand 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 +43,7 @@ class mirrorCommand extends Command {
|
||||||
.write(output);
|
.write(output);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
loadingmsg.delete();
|
||||||
return message.channel.send({files: [output]});
|
return message.channel.send({files: [output]});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ class rotateCommand 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
|
||||||
|
@ -46,6 +47,7 @@ class rotateCommand extends Command {
|
||||||
.write(output);
|
.write(output);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
loadingmsg.delete();
|
||||||
return message.channel.send({files: [output]});
|
return message.channel.send({files: [output]});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue