@ -173,7 +174,7 @@ class ytpCommand extends Command {
loadingmsg.delete();
loadingmsg.delete();
returnmessage.channel.send('You need a valid video link!');
returnmessage.channel.send('You need a valid video link!');
}
}
}
}
if(!message.channel.nsfw&&!args.force)returnmessage.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 ) OR do \`\`${this.client.commandHandler.prefix[0]}ytp --force\`\` to make the command work outside of nsfw channel BE AWARE THAT IT WON'T CHANGE THE FINAL RESULT SO NSFW CAN STILL HAPPEN`);
if(!message.channel.nsfw&&!args.force)returnmessage.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 ) OR do \`\`${this.client.commandHandler.prefix[0]}ytp --force\`\` to make the command work outside of nsfw channel BE AWARE THAT IT WON'T CHANGE THE FINAL RESULT SO NSFW CAN STILL HAPPEN`);
@ -202,7 +203,7 @@ class ytpCommand extends Command {
letloadingmsg=awaitmessage.channel.send(`Processing, this can take a **long** time, i'll ping you when i finished <a:loadingmin:527579785212329984>\nSome info: There is currently ${mp4.length} videos, you can add yours by doing \`\`${this.client.commandHandler.prefix[0]}ytp --add (link or attachment)\`\``);
letloadingmsg=awaitmessage.channel.send(`Processing, this can take a **long** time, i'll ping you when i finished <a:loadingmin:527579785212329984>\nSome info: There is currently ${mp4.length} videos, you can add yours by doing \`\`${this.client.commandHandler.prefix[0]}ytp --add (link or attachment)\`\``);
letoptions={
letoptions={
debug:args.debug,
debug:args.debug,
MAX_STREAM_DURATION:args.link?args.link:Math.floor((Math.random()*3)+1),// Random duration of video clip
MAX_STREAM_DURATION:args.link?args.link:Math.floor((Math.random()*3)+1),// Random duration of video clip
sources:'./asset/ytp/sources/',
sources:'./asset/ytp/sources/',
@ -217,7 +218,7 @@ class ytpCommand extends Command {
MAX_CLIPS:MAX_CLIPS,
MAX_CLIPS:MAX_CLIPS,
transitions:true,
transitions:true,
showFileNames:true,
showFileNames:true,
effects:{
effects:{
effect_RandomSound:!args.randomSound,
effect_RandomSound:!args.randomSound,
effect_RandomSoundMute:!args.randomSoundMute,
effect_RandomSoundMute:!args.randomSoundMute,
effect_Reverse:!args.reverse,
effect_Reverse:!args.reverse,
@ -232,7 +233,7 @@ class ytpCommand extends Command {