Compare commits
5 commits
0c6af04fd3
...
a1a8a1eff0
Author | SHA1 | Date | |
---|---|---|---|
a1a8a1eff0 | |||
41c65354b9 | |||
af6ac38a38 | |||
3aeba06f8b | |||
2261105368 |
3 changed files with 22 additions and 3 deletions
|
@ -3,7 +3,7 @@ const { Command } = require('discord-akairo');
|
||||||
class levertownedCommand extends Command {
|
class levertownedCommand extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
super('levertowned', {
|
super('levertowned', {
|
||||||
aliases: ['levertowned', 'levertard', 'nooberton', 'leverfart'],
|
aliases: ['levertowned', 'nooberton', 'leverfart'],
|
||||||
category: 'hidden',
|
category: 'hidden',
|
||||||
description: {
|
description: {
|
||||||
content: 'levertowned',
|
content: 'levertowned',
|
||||||
|
|
|
@ -21,7 +21,8 @@ class OwnedCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
let epicMessage = ['You cheated not ONLY the GAME, BUT yourself. You didn\'t GROW. You didn\'t IMPROVE. You TOOK a SHORTCUT and gained NOTHING. You EXPERIENCED a HOLLOW victory. NOTHING WAS risked and NOTHING WAS gained. It\'s SAD that you don\'t KNOW the DIFFERENCE.', 'TROLOLOLO OWNED EPIC STYLE', 'Owned noob', 'HAHA BRO YOU JUST GOT OOOOOOOOWNED HAHAHAHAHHAHA NOOOB NOOOOB NOOOB OWNED NOOB <:youngtroll:488559163832795136>', '<a:op:516341492982218756> op op op owned epic style <a:op:516341492982218756>', 'HAHAHA BRO YOU HAVE BEEN OWNED TROLL BRO STYLE', 'OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED O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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!', 'You just got owned <a:troll:525724709833277442>', 'you just been....epicly trolled <:trole:241942993022615552>', 'You\'re a massive retard, you don\'t even know how the internet works, every day you wake up crying because I\'ve painted on the wall above you a big poster of me pointing and laughing at you while saying "you will never succeed in life fucking retard" You consider suicide daily Once you\'ll make the decision of ending yourself call me, because I wanna record it while calling you a faggot I\'ll help you loading the gun/making the noose'];
|
let epicMessage = ['You cheated not ONLY the GAME, BUT yourself. You didn\'t GROW. You didn\'t IMPROVE. You TOOK a SHORTCUT and gained NOTHING. You EXPERIENCED a HOLLOW victory. NOTHING WAS risked and NOTHING WAS gained. It\'s SAD that you don\'t KNOW the DIFFERENCE.', 'TROLOLOLO OWNED EPIC STYLE', 'Owned noob', 'HAHA BRO YOU JUST GOT OOOOOOOOWNED HAHAHAHAHHAHA NOOOB NOOOOB NOOOB OWNED NOOB <:youngtroll:488559163832795136>', '<a:op:516341492982218756> op op op owned epic style <a:op:516341492982218756>', 'HAHAHA BRO YOU HAVE BEEN OWNED TROLL BRO STYLE', 'OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED', 'OWNED\nFUCKING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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!', 'You just got owned <a:troll:525724709833277442>', 'you just been....epicly trolled <:trole:241942993022615552>', 'I hope you have a nice day, just a simple reminder that I love you and I think you\'re pretty epic!!!!'];
|
||||||
|
|
||||||
let ownedMessage = epicMessage[Math.floor( Math.random() * epicMessage.length )];
|
let ownedMessage = epicMessage[Math.floor( Math.random() * epicMessage.length )];
|
||||||
let owned = args.member;
|
let owned = args.member;
|
||||||
|
|
||||||
|
|
|
@ -113,15 +113,32 @@ class DownloadCommand extends Command {
|
||||||
Embed.setFooter(`Using Hapi | ${Embed.footer.text}`);
|
Embed.setFooter(`Using Hapi | ${Embed.footer.text}`);
|
||||||
compressEmbed.setFooter(`Using Hapi | ${compressEmbed.footer.text}`);
|
compressEmbed.setFooter(`Using Hapi | ${compressEmbed.footer.text}`);
|
||||||
|
|
||||||
|
if (args.proxy && !args.proxyAuto) { // args.proxyAuto is only provided when the command is run after a error 429
|
||||||
|
args.proxy = args.proxy - 1;
|
||||||
|
if (!proxy[args.proxy]) args.proxy = 0;
|
||||||
|
}
|
||||||
|
|
||||||
const params = new URLSearchParams();
|
const params = new URLSearchParams();
|
||||||
params.append('url', args.link.href);
|
params.append('url', args.link.href);
|
||||||
|
if (proxy[args.proxy] !== undefined) {
|
||||||
|
params.append('proxy', proxy[args.proxy].ip);
|
||||||
|
}
|
||||||
|
|
||||||
fetch(`${Hapi}/download`, {method: 'POST', body: params})
|
fetch(`${Hapi}/download`, {method: 'POST', body: params})
|
||||||
.then(async res => {
|
.then(async res => {
|
||||||
console.log(`status is ${res.status}`);
|
console.log(`status is ${res.status}`);
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
console.log('Status is not 200. Abort');
|
console.log('Status is not 200. Abort');
|
||||||
return message.channel.send('An error has occurred.');
|
|
||||||
|
if (args.proxy != null) {
|
||||||
|
args.proxy = args.proxy + 1;
|
||||||
|
} else {
|
||||||
|
args.proxy = 0;
|
||||||
|
args.proxyAuto = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!proxy[args.proxy]) return message.channel.send('`HTTP Error 429: Too Many Requests.`\nThe website you tried to download from probably has the bot blocked along with its proxy');
|
||||||
|
return this.client.commandHandler.runCommand(message, this.client.commandHandler.findCommand('download'), args);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.headers.get('content-type') === 'application/json; charset=utf-8') { // If we receive JSON it mean it started compressing the video
|
if (res.headers.get('content-type') === 'application/json; charset=utf-8') { // If we receive JSON it mean it started compressing the video
|
||||||
|
@ -200,6 +217,7 @@ class DownloadCommand extends Command {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else { // No Hapi server, let the bot download it
|
} else { // No Hapi server, let the bot download it
|
||||||
|
console.log('[Download] Hapi is not online.');
|
||||||
if (args.proxy && !args.proxyAuto) { // args.proxyAuto is only provided when the command is run after a error 429
|
if (args.proxy && !args.proxyAuto) { // args.proxyAuto is only provided when the command is run after a error 429
|
||||||
args.proxy = args.proxy - 1;
|
args.proxy = args.proxy - 1;
|
||||||
if (!proxy[args.proxy]) args.proxy = 0;
|
if (!proxy[args.proxy]) args.proxy = 0;
|
||||||
|
|
Loading…
Reference in a new issue