This commit is contained in:
parent
09eee1a0ca
commit
40052ac85d
1 changed files with 3 additions and 3 deletions
|
@ -24,16 +24,16 @@ module.exports = {
|
|||
url = url.href;
|
||||
} catch (error) {
|
||||
this.cleanUp(downloadsDir);
|
||||
message.channel.send("Invalid URL");
|
||||
message.channel.send("Could not parse the provided argument as a URL.");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
this.cleanUp(downloadsDir);
|
||||
return message.channel.send("No url provided")
|
||||
return message.channel.send("You have to provide a URL in an argument.")
|
||||
}
|
||||
|
||||
if(this.executeCommand(`yt-dlp "${url}" -P ${downloadsDir} --cookies ${cookieFilepath}`).error){
|
||||
message.channel.send("An error occured when executing the command");
|
||||
message.channel.send("An error occured when downloading the video.");
|
||||
this.cleanUp(downloadsDir);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue