Bye to some useless stuff

This commit is contained in:
Daniel Odendahl Jr
2018-05-16 11:32:27 +00:00
parent fc3911d241
commit 97bc1feffc
8 changed files with 3 additions and 195 deletions
-30
View File
@@ -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}.`);
}
};
+1 -1
View File
@@ -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.',