forked from Supositware/Haha-Yes
Remove the message and spoiler if executed in a nsfw channel
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
9a217cc139
commit
eb28545cbd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
Loading…
Reference in a new issue