mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
Bye to some useless stuff
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
|
||||
module.exports = class IsItChristmasCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'is-it-christmas',
|
||||
group: 'events',
|
||||
memberName: 'is-it-christmas',
|
||||
description: 'Responds with whether or not it\'s Christmas.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const today = new Date();
|
||||
if (today.getMonth() === 11 && today.getDate() === 25) {
|
||||
return msg.reply('YES!!!', { files: ['https://i.imgur.com/B1fyMlc.jpg'] });
|
||||
}
|
||||
return msg.reply('No, not yet...');
|
||||
}
|
||||
};
|
||||
@@ -1,30 +0,0 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
|
||||
module.exports = class PercentageCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'percentage',
|
||||
aliases: ['percent'],
|
||||
group: 'number-edit',
|
||||
memberName: 'percentage',
|
||||
description: 'Determines the percentage one number is of another.',
|
||||
args: [
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How much of the maximum value should be used?',
|
||||
type: 'float'
|
||||
},
|
||||
{
|
||||
key: 'maximum',
|
||||
prompt: 'What is the maximum value of the percentage?',
|
||||
type: 'float'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { amount, maximum }) {
|
||||
const percentage = (amount / maximum) * 100;
|
||||
return msg.say(`${amount} is ${percentage}% of ${maximum}.`);
|
||||
}
|
||||
};
|
||||
@@ -5,7 +5,7 @@ module.exports = class UnitsCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'units',
|
||||
aliases: ['convert-units', 'unit-converter'],
|
||||
aliases: ['convert-units', 'unit-converter', 'unit'],
|
||||
group: 'number-edit',
|
||||
memberName: 'units',
|
||||
description: 'Converts units to/from other units.',
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const fruits = require('../../assets/json/fruit');
|
||||
|
||||
module.exports = class FruitCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'fruit',
|
||||
group: 'random',
|
||||
memberName: 'fruit',
|
||||
description: 'Responds with a random fruit.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say(fruits[Math.floor(Math.random() * fruits.length)]);
|
||||
}
|
||||
};
|
||||
@@ -1,17 +0,0 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
|
||||
module.exports = class HelloWorldCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'hello-world',
|
||||
aliases: ['hola-mundo'],
|
||||
group: 'single',
|
||||
memberName: 'hello-world',
|
||||
description: 'Hello world.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say('Hello World!');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user