From 079e21f0c9508e60fa86926e2cc9e029caa4789c Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 27 Oct 2019 22:50:50 +0100 Subject: [PATCH] actually put this at the right area --- commands/fun/ytp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index 1d9cbd79..8aeb2b07 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -38,7 +38,6 @@ class ytpCommand extends Command { 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) { return youtubedl.exec(url, ['-o', `./asset/ytp/userVid/${message.id}.mp4`], {}, function(err) { if (err) { @@ -52,8 +51,9 @@ class ytpCommand extends Command { } else { return message.channel.send('You need a valid video link!'); } - } + } + 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 '); // Read userVid folder and only take .mp4