Change when it check for link

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-08-25 03:12:17 +02:00
parent 8abe1bd25c
commit e1ad11ce55

View file

@ -51,8 +51,6 @@ class DownloadCommand extends Command {
} }
async exec(message, args) { async exec(message, args) {
if (!args.link) return message.channel.send('Please try again with a valid URL.');
if (args.listproxy) { if (args.listproxy) {
let proxys = []; let proxys = [];
@ -71,6 +69,8 @@ class DownloadCommand extends Command {
return message.channel.send(Embed); return message.channel.send(Embed);
} }
if (!args.link) return message.channel.send('Please try again with a valid URL.');
let loadingmsg = await message.channel.send('Downloading <a:loadingmin:527579785212329984>'); let loadingmsg = await message.channel.send('Downloading <a:loadingmin:527579785212329984>');
let filename = `${message.id}_video`; let filename = `${message.id}_video`;