@ -143,7 +143,7 @@ class ytpCommand extends Command {
}
});
returnmessage.channel.send(`There is currently ${mp4.length} videos, you can add yours by doing \`\`${this.client.commandHandler.prefix[0]}ytp --add (link or attachment)\`\``);
returnmessage.reply(`There is currently ${mp4.length} videos, you can add yours by doing \`\`${this.client.commandHandler.prefix[0]}ytp --add (link or attachment)\`\``);
}
if(args.listproxy){
@ -161,7 +161,7 @@ class ytpCommand extends Command {
.setDescription(proxys.join('\n'))
.setFooter('You can help me get more proxy by either donating to me or providing a proxy for me');
returnmessage.channel.send(Embed);
returnmessage.reply(Embed);
}
if(args.add){
@ -169,7 +169,7 @@ class ytpCommand extends Command {
@ -204,15 +204,15 @@ class ytpCommand extends Command {
args.proxyAuto=true;
}
if(!proxy[args.proxy])returnmessage.channel.send('`HTTP Error 429: Too Many Requests.`\nThe website you tried to download from probably has the bot blocked along with its proxy');
if(!proxy[args.proxy])returnmessage.reply('`HTTP Error 429: Too Many Requests.`\nThe website you tried to download from probably has the bot blocked along with its proxy');
if(err.includes('Error: status code 403'))returnmessage.channel.send('`HTTP Error 403: Forbidden.`\nThe video you tried to download is not publicly available therefor the bot can\'t download it.');
if(err.includes('Error: status code 403'))returnmessage.reply('`HTTP Error 403: Forbidden.`\nThe video you tried to download is not publicly available therefor the bot can\'t download it.');
returnmessage.channel.send(err,{code:true});
returnmessage.reply(err,{code:true});
})
.on('end',asyncoutput=>{
@ -280,12 +280,12 @@ class ytpCommand extends Command {
});
}else{
loadingmsg.delete();
returnmessage.channel.send('You need a valid video link!');
returnmessage.reply('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.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 \`\`${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`);
// Read userVid folder and select random vid and only take .mp4
letmp4=[];
@ -308,7 +308,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 are currently ${mp4.length} videos, you can add yours by doing \`\`${this.client.commandHandler.prefix[0]}ytp --add (link or attachment). Thanks for contributing!\`\``);
letloadingmsg=awaitmessage.reply(`Processing, this can take a ***long*** time, i'll ping you when i finished <a:loadingmin:527579785212329984>\nSome info: There are currently ${mp4.length} videos, you can add yours by doing \`\`${this.client.commandHandler.prefix[0]}ytp --add (link or attachment)\`\`\nLike ytp? Why not check out https://ytp.namejeff.xyz/`);
letoptions={
@ -353,7 +353,7 @@ class ytpCommand extends Command {
returnmessage.reply('Here is your YTP! Remember, it might contain nsfw, so be careful!',{files:[`${os.tmpdir()}/${message.id}_YTP.mp4`]})
.catch(err=>{
console.error(err);
returnmessage.channel.send('Whoops, look like the vid might be too big for discord, my bad, please try again');
returnmessage.reply('Whoops, look like the vid might be too big for discord, my bad, please try again');
});
})
.catch(err=>{
@ -368,7 +368,7 @@ class ytpCommand extends Command {
if(err.code==186)returnmessage.channel.send(`${err.message} Your message was ${text.length} characters, you need to remove ${text.length-280} characters (This count may be inaccurate if your message contained link)`);// Tweet needs to be a bit shorter.
if(err.code==187)returnmessage.channel.send(err.message);// Status is a duplicate.
if(err.code==326)returnmessage.channel.send(err.message);// To protect our users from spam and other malicious activity, this account is temporarily locked.
if(err.code==186)returnmessage.reply(`${err.message} Your message was ${text.length} characters, you need to remove ${text.length-280} characters (This count may be inaccurate if your message contained link)`);// Tweet needs to be a bit shorter.
if(err.code==187)returnmessage.reply(err.message);// Status is a duplicate.
if(err.code==326)returnmessage.reply(err.message);// To protect our users from spam and other malicious activity, this account is temporarily locked.
console.error('OH NO!!!!');
console.error(err);
returnmessage.channel.send('OH NO!!! AN ERROR HAS occurred!!! please hold on while i find what\'s causing this issue! ');
returnmessage.reply('OH NO!!! AN ERROR HAS occurred!!! please hold on while i find what\'s causing this issue! ');
}
consttweetid=response.id_str;
@ -200,7 +188,7 @@ class tweetCommand extends Command {
channel=client.channels.resolve(twiChannel);
channel.send({embed:Embed});
returnmessage.channel.send(`Go see ur epic tweet ${TweetLink}`);
returnmessage.reply(`Go see ur epic tweet ${TweetLink}`);
@ -15,7 +15,7 @@ class premiumCommand extends Command {
}
asyncexec(message){
returnmessage.channel.send('EPIC TF2 FEATURE HERE !!!!!!111111 YOU CAN FLY AND CHEAT !!!!!!!!!!!!!!!!! ALSO PREMIUM SONG AND ANNOY EVERYONE AND FLEX ON EM HATERS WITH CUSTOM SKIN!!!!');
returnmessage.reply('EPIC TF2 FEATURE HERE !!!!!!111111 YOU CAN FLY AND CHEAT !!!!!!!!!!!!!!!!! ALSO PREMIUM SONG AND ANNOY EVERYONE AND FLEX ON EM HATERS WITH CUSTOM SKIN!!!!');