diff --git a/commands/fun/petittube.js b/commands/fun/petittube.js index e713172f..ac6cffc5 100644 --- a/commands/fun/petittube.js +++ b/commands/fun/petittube.js @@ -24,7 +24,7 @@ class PetitTubeCommand extends Command { const url = $('iframe')[0].attribs.src; - this.client.commandHandler.runCommand(message, this.client.commandHandler.findCommand('download'), { link: new URL(url), proxy: 1, spoiler: true, caption: 'Video might be NSFW as always, be careful!'}); + this.client.commandHandler.runCommand(message, this.client.commandHandler.findCommand('download'), { link: new URL(url), proxy: 1, spoiler: !message.channel.nsfw, caption: message.channel.nsfw ? '' : 'Video might be NSFW as always, be careful!'}); } } module.exports = PetitTubeCommand; \ No newline at end of file