Kill Tags

This commit is contained in:
Daniel Odendahl Jr
2017-09-22 19:56:54 +00:00
parent a5e40ec1ca
commit 39c87c42e8
6 changed files with 21 additions and 81 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class CoolnessCommand extends Command {
if (!user) user = msg.author;
const coolness = user.id / this.client.user.id;
const prefix = user.id === msg.author.id ? 'You\'re' : 'They\'re';
if (user.id === '234318196893548545') return msg.reply(`${prefix} the best person ever.`);
if (user.id === '234318196893548545') return msg.reply(`${prefix} the best person ever.`);
if (coolness < 0.3) return msg.reply(`${prefix} the coolest being to walk this Earth.`);
if (coolness < 0.5) return msg.reply(`${prefix} an extremely cool dude.`);
if (coolness < 0.8) return msg.reply(`${prefix} pretty sweet, not gonna lie.`);
+17
View File
@@ -0,0 +1,17 @@
const Command = require('../../structures/Command');
module.exports = class ItsJokeCommand extends Command {
constructor(client) {
super(client, {
name: 'its-joke',
group: 'random',
memberName: 'its-joke',
description: 'It\'s joke!',
clientPermissions: ['ATTACH_FILES']
});
}
run(msg) {
return msg.say({ files: ['https://i.imgur.com/Gmsx9Ma.jpg'] });
}
};
-31
View File
@@ -1,31 +0,0 @@
const Command = require('../../structures/Command');
const { list } = require('../../structures/Util');
const tags = require('../../assets/json/tag');
module.exports = class TagCommand extends Command {
constructor(client) {
super(client, {
name: 'tag',
aliases: ['easter-egg', 'mini-command'],
group: 'random',
memberName: 'tag',
description: 'Little mini responses that didn\'t quite make the command cut.',
args: [
{
key: 'tag',
prompt: `What tag do you want to view? Either ${list(Object.keys(tags), 'or')}.`,
type: 'string',
validate: tag => {
if (tags[tag.toLowerCase()]) return true;
return `Invalid tag, please enter either ${list(Object.keys(tags), 'or')}.`;
},
parse: tag => tag.toLowerCase()
}
]
});
}
run(msg, { tag }) {
return msg.say(tags[tag]);
}
};