only shittifie the vid when there is no error on download

This commit is contained in:
loicbersier 2019-10-12 18:30:17 +02:00
parent d5048134fd
commit c5f2e2d39f

View file

@ -48,8 +48,9 @@ class vidshittifierCommand extends Command {
console.error(err); console.error(err);
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.');
} } else {
shittifie(); shittifie();
}
}); });
} else { } else {
return message.channel.send('You need a valid video link!'); return message.channel.send('You need a valid video link!');