actually put this at the right area
This commit is contained in:
parent
e6112b4d34
commit
079e21f0c9
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,6 @@ class ytpCommand extends Command {
|
||||||
url = Attachment[0].url;
|
url = Attachment[0].url;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!message.channel.nsfw) return message.channel.send('Please execute this command in an NSFW channel ( Content might not be NSFW but since the video are user submitted better safe than sorry )');
|
|
||||||
if (url) {
|
if (url) {
|
||||||
return youtubedl.exec(url, ['-o', `./asset/ytp/userVid/${message.id}.mp4`], {}, function(err) {
|
return youtubedl.exec(url, ['-o', `./asset/ytp/userVid/${message.id}.mp4`], {}, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -54,6 +53,7 @@ class ytpCommand extends Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!message.channel.nsfw) return message.channel.send('Please execute this command in an NSFW channel ( Content might not be NSFW but since the video are user submitted better safe than sorry )');
|
||||||
let loadingmsg = await message.channel.send('Processing, this can take a **long** time, i\'ll ping you when i finished <a:loadingmin:527579785212329984>');
|
let loadingmsg = await message.channel.send('Processing, this can take a **long** time, i\'ll ping you when i finished <a:loadingmin:527579785212329984>');
|
||||||
|
|
||||||
// Read userVid folder and only take .mp4
|
// Read userVid folder and only take .mp4
|
||||||
|
|
Loading…
Reference in a new issue