Delete the loading message when video is duplicated too

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-05-13 14:12:33 +02:00
parent 731626aba0
commit f02b535254

View file

@ -151,6 +151,7 @@ class ytpCommand extends Command {
if (ytphash) {
fs.unlinkSync(`./asset/ytp/userVid/${message.id}.mp4`);
loadingmsg.delete();
return message.reply('This video is a duplicate... Not adding.');
} else {
const body = {hash: hash, link: args.link, messageID: message.id};