From e6112b4d34ff6abee6894b8454f0f204f18a606e Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 27 Oct 2019 22:49:03 +0100 Subject: [PATCH] let people add vid without being in nsfw channel --- 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 4d941d7..1d9cbd7 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -29,7 +29,6 @@ class ytpCommand extends Command { } async exec(message, args) { - 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 (args.add) { let loadingmsg = await message.channel.send('Downloading '); let Attachment = (message.attachments).array(); @@ -38,7 +37,8 @@ class ytpCommand extends Command { if (Attachment[0] && !args.link) { 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) {