@ -24,7 +55,12 @@ class PetitTubeCommand extends Command {
consturl=$('iframe')[0].attribs.src;
consturl=$('iframe')[0].attribs.src;
this.client.commandHandler.runCommand(message,this.client.commandHandler.findCommand('download'),{link:newURL(url),proxy:1,spoiler:!message.channel.nsfw,caption:message.channel.nsfw?'':'Video might be NSFW as always, be careful!'});
if(args.proxy){
args.proxy=args.proxy-1;
if(!proxy[args.proxy])args.proxy=0;
}
this.client.commandHandler.runCommand(message,this.client.commandHandler.findCommand('download'),{link:newURL(url),proxy:args.proxy,spoiler:!message.channel.nsfw,caption:message.channel.nsfw?'':'Video might be NSFW as always, be careful!'});