mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Kill Tags
This commit is contained in:
@@ -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.`);
|
||||
|
||||
@@ -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'] });
|
||||
}
|
||||
};
|
||||
@@ -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]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user