Delete the loading message when video is duplicated too
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
731626aba0
commit
f02b535254
1 changed files with 6 additions and 5 deletions
|
@ -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…
Reference in a new issue