Delete the loading message when video is duplicated too

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
merge-requests/5/merge
loicbersier 4 years ago
parent 731626aba0
commit f02b535254

@ -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};

Loading…
Cancel
Save