This commit is contained in:
parent
9d0eb60b81
commit
0a35549666
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports = {
|
|||
return message.channel.send("No url provided")
|
||||
}
|
||||
|
||||
if(this.executeCommand(`yt-dlp "${url}" -P ${downloadsDir}`).error === false){
|
||||
if(this.executeCommand(`yt-dlp "${url}" -P ${downloadsDir}`).error){
|
||||
message.channel.send("An error occured when executing the command");
|
||||
this.cleanUp(downloadsDir);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue