returninteraction.editReply('successfully deleted the following tag: '+args.trigger);
}
else{
returninteraction.editReply(`You are not the owner of this tag, if you think it is problematic ask a user with the 'Administrator' permission to remove it by doing ${this.client.commandHandler.prefix[0]}tag ${args.trigger} --remove`);
returninteraction.editReply(`You are not the owner of this tag, if you think it is problematic ask an admin to remove it by doing ${this.client.commandHandler.prefix[0]}tag ${args.trigger} --remove`);
returninteraction.editReply({content:`The tag ${args.trigger} has been deleted`,ephemeral:true});
}
else{
returninteraction.editReply({content:'Nothing has been changed.',ephemeral:true});
}
});
}
else{
returninteraction.editReply(`You are not the owner of this tag, if you think it is problematic ask an admin to remove it by doing ${this.client.commandHandler.prefix[0]}tag ${args.trigger} --remove`);
if(err.code==186)returninteraction.editReply({content:`${err.interaction} Your interaction was ${tweet.length} characters, you need to remove ${tweet.length-280} characters (This count may be inaccurate if your interaction contained link)`});
.setDescription('Force the generation of the video in non-nsfw channel.')
.setRequired(false)),
category:'fun',
ratelimit:2,
cooldown:60,
parallelLimit:30,
asyncexecute(interaction,args){
if(!interaction.channel.nsfw&&!args.force)returninteraction.reply(`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 \`\`${interaction.prefix}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`);
@ -72,19 +69,19 @@ export default {
},
};
awaitnewYTPGenerator().configurateAndGo(options)
newYTPGenerator().configurateAndGo(options)
.then(()=>{
loadingmsg.delete();
returninteraction.followUp({content:'Here is your YTP! Remember, it might contain nsfw, so be careful!',files:[`${os.tmpdir()}/${interaction.id}_YTP.mp4`]})
returninteraction.reply({content:'Here is your YTP! Remember, it might contain nsfw, so be careful!',files:[`${os.tmpdir()}/${interaction.id}_YTP.mp4`]})
awaitinteraction.followUp('Uh oh! The video you tried to download is too big!',{ephemeral:true});
}
elseif(fileSize>maxFileSize){
elseif(fileSize>8){
constfileurl=awaitutils.upload(output)
.catch(err=>{
console.error(err);
});
awaitinteraction.editReply({content:`File was bigger than ${maxFileSize} mb. It has been uploaded to an external site.`,embeds:[Embed],ephemeral:false});
returnawaitinteraction.followUp(`Uh oh! The video you tried to download is larger than 100 mb (is ${aproxFileSize} mb)! Try again with a lower resolution format.`);
}
elseif(aproxFileSize>500&&tries>4){
returnawaitinteraction.followUp(`Uh oh! The video you tried to download is larger than 500 mb (is ${aproxFileSize} mb)! Try again with a lower resolution format.`);
awaitinteraction.followUp('❌ Uh oh! The video once converted is too big!',{ephemeral:true});
}
elseif(fileSize>maxFileSize){
elseif(fileSize>8){
constfileURL=awaitutils.upload(gifsicleOutput)
.catch(err=>{
console.error(err);
});
awaitinteraction.editReply({content:`ℹ️ File was bigger than ${maxFileSize} mb. It has been uploaded to an external site.\n${fileURL}`,ephemeral:false});
awaitinteraction.editReply({content:`ℹ️ File was bigger than 8 mb. It has been uploaded to an external site.\n${fileURL}`,ephemeral:false});
channel.send(`Ready to serve in ${channelSize} channels on ${guildSize} servers.\nThere is ${commandSize} command loaded.\nRunning yt-dlp ${ytdlpVersion.replace('\n','')}\n${client.readyAt}`);
["1488","14/88","14 88","niggar","niggars","nigger","niggers","nigar","kys","kill yourself","faggot","faggots","fag","fags","kill ur self","n\ni\ng\ng\ne\nr","n i g g e r","we must secure the existance of our people and a future for white children."]
["1488","14/88","14 88","niggar","nigger","nigar","kys","kill yourself","faggot","fag","kill ur self","n\ni\ng\ng\ne\nr","n i g g e r","we must secure the existance of our people and a future for white children."]
* Somewhere to upload files larger than the file limit, currently 25 mb. (I use a self hosted [XBackBone](https://github.com/SergiX44/XBackBone/) with the upload.sh script made from it, you can use anything else just need to be located in bin/upload.sh)
* Somewhere to upload files larger than 8 mb (I use a self hosted [XBackBone](https://github.com/SergiX44/XBackBone/) with the upload.sh script made from it, you can use anything else just need to be located in bin/upload.sh)
console.error('This script only download the linux version of yt-dlp. If you want to download anyway try again with -f or execute ./bin/yt-dlp --update-to nightly');
console.log(`[${timestamp.toISOString()}] \x1b[33m${isOptOut?'A user':`${userTag} (${userID})`}\x1b[0m is rate limited on \x1b[33m${commandName}\x1b[0m for${dateString}.`);
return{limited:true,current:parallelLimit[commandName],max:command.parallelLimit,msg:`There are currently too many parallel execution of this command, please wait before retrying. (${parallelLimit[commandName]}/${command.parallelLimit})`};