Change Variable Names, Remove Useless Commands

This commit is contained in:
Daniel Odendahl Jr
2017-04-29 19:53:01 +00:00
parent 3c773a8952
commit 988912f471
52 changed files with 236 additions and 312 deletions
-16
View File
@@ -1,16 +0,0 @@
const { Command } = require('discord.js-commando');
module.exports = class CanYouNotCommand extends Command {
constructor(client) {
super(client, {
name: 'canyounot',
group: 'random',
memberName: 'canyounot',
description: 'Can YOU not?'
});
}
run(message) {
return message.say('Can YOU not?');
}
};
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class EasterEggCommand extends Command {
return true;
return 'Nope, that\'s not a valid easter egg. Try again!';
},
parse: text => text.toLowerCase()
parse: tag => tag.toLowerCase()
}]
});
}
+4 -1
View File
@@ -21,5 +21,8 @@
"egg": "You're an egg.",
"beta": "https://cdn.discordapp.com/attachments/252317073814978561/304812045851688963/image.jpg",
"pathetic": "https://cdn.discordapp.com/attachments/252317073814978561/304812045851688963/image.jpg",
"swagolor": "https://cdn.discordapp.com/attachments/252317073814978561/306110096491151363/Swagolor.png"
"swagolor": "https://cdn.discordapp.com/attachments/252317073814978561/306110096491151363/Swagolor.png",
"canyounot": "Can YOU not?",
"slowclap": "*slow clap*",
"justdoit": "https://www.youtube.com/watch?v=ZXsQAXx_ao0"
}
-22
View File
@@ -1,22 +0,0 @@
const { Command } = require('discord.js-commando');
module.exports = class MotivateCommand extends Command {
constructor(client) {
super(client, {
name: 'motivate',
group: 'random',
memberName: 'motivate',
description: 'Motivates something/someone.',
args: [{
key: 'thing',
prompt: 'What do you want to motivate?',
type: 'string'
}]
});
}
run(message, args) {
const { thing } = args;
return message.say(`${thing}, https://www.youtube.com/watch?v=ZXsQAXx_ao0`);
}
};
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class NitroCommand extends Command {
.setThumbnail('https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg')
.setColor(0x748BD9)
.setURL('https://discordapp.com/nitro')
.setDescription('This Message can only be viewed by members with Discord Nitro.\n\n\n[More Information](https://discordapp.com/nitro)');
.setDescription('This Message can only be viewed by members with Discord Nitro.\n[More Information](https://discordapp.com/nitro)');
return message.embed(embed);
}
};
-16
View File
@@ -1,16 +0,0 @@
const { Command } = require('discord.js-commando');
module.exports = class SlowClapCommand extends Command {
constructor(client) {
super(client, {
name: 'slowclap',
group: 'random',
memberName: 'slowclap',
description: '*Slow Clap*.'
});
}
run(message) {
return message.say('*slow clap*');
}
};
+6 -6
View File
@@ -20,15 +20,15 @@ module.exports = class TodayCommand extends Command {
const { text } = await request
.get('http://history.muffinlabs.com/date')
.buffer(true);
const data = JSON.parse(text);
const events = data.data.Events;
const randomNumber = Math.floor(Math.random() * events.length);
const parsed = JSON.parse(text);
const events = parsed.data.Events;
const random = Math.floor(Math.random() * events.length);
const embed = new RichEmbed()
.setColor(0x9797FF)
.setURL(data.url)
.setTitle(`On this day (${data.date})...`)
.setURL(parsed.url)
.setTitle(`On this day (${parsed.date})...`)
.setTimestamp()
.setDescription(`${events[randomNumber].text} (${events[randomNumber].year})`);
.setDescription(`${events[random].year}: ${events[random].text}`);
return message.embed(embed);
} catch (err) {
return message.say('An Unknown Error Occurred.');