forked from Supositware/Haha-Yes
delete the process message when it really finished
This commit is contained in:
parent
4cb05965d5
commit
4e305be65e
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class vidshittifyerCommand extends Command {
|
||||||
} else {
|
} else {
|
||||||
compression = '10k';
|
compression = '10k';
|
||||||
}
|
}
|
||||||
let option = `-b:v ${compression} -b:a ${compression}`;
|
let option = `-b:v ${compression} -b:a ${compression}`;
|
||||||
|
|
||||||
let loadingmsg = await message.channel.send('Processing <a:loadingmin:527579785212329984>');
|
let loadingmsg = await message.channel.send('Processing <a:loadingmin:527579785212329984>');
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@ class vidshittifyerCommand extends Command {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
return message.channel.send('An error has occured, I can\'t download from the link you provided.');
|
return message.channel.send('An error has occured, I can\'t download from the link you provided.');
|
||||||
}
|
}
|
||||||
loadingmsg.delete();
|
|
||||||
shittify();
|
shittify();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -70,6 +69,7 @@ class vidshittifyerCommand extends Command {
|
||||||
function shittify() {
|
function shittify() {
|
||||||
exec(`ffmpeg -i ${input} ${option} -vcodec libx264 -r 5 -r 15 ${output}`)
|
exec(`ffmpeg -i ${input} ${option} -vcodec libx264 -r 5 -r 15 ${output}`)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
loadingmsg.delete();
|
||||||
message.delete();
|
message.delete();
|
||||||
return message.channel.send({files: [output]})
|
return message.channel.send({files: [output]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
Loading…
Reference in a new issue