diff --git a/commands/random/currency.js b/commands/numedit/currency.js similarity index 93% rename from commands/random/currency.js rename to commands/numedit/currency.js index 0c59fe16..cb8831f7 100644 --- a/commands/random/currency.js +++ b/commands/numedit/currency.js @@ -6,7 +6,7 @@ module.exports = class CurrencyCommand extends Command { constructor(client) { super(client, { name: 'currency', - group: 'random', + group: 'numedit', memberName: 'currency', description: 'Converts from one currency to another.', details: `**Codes:** ${codes.join(', ')}`, @@ -47,8 +47,7 @@ module.exports = class CurrencyCommand extends Command { const { body } = await request .get(`http://api.fixer.io/latest?base=${base}&symbols=${to}`); const rate = body.rates[to]; - const converted = rate * amount; - return msg.say(`${amount} ${base} is ${converted} ${to}.`); + return msg.say(`${amount} ${base} is ${amount * rate} ${to}.`); } catch(err) { return msg.say(`An Error Occurred: ${err}`); } diff --git a/commands/random/currencycodes.json b/commands/numedit/currencycodes.json similarity index 100% rename from commands/random/currencycodes.json rename to commands/numedit/currencycodes.json diff --git a/commands/random/math.js b/commands/numedit/math.js similarity index 96% rename from commands/random/math.js rename to commands/numedit/math.js index 600419eb..f873feb1 100644 --- a/commands/random/math.js +++ b/commands/numedit/math.js @@ -5,7 +5,7 @@ module.exports = class MathCommand extends Command { constructor(client) { super(client, { name: 'math', - group: 'random', + group: 'numedit', memberName: 'math', description: 'Does math.', args: [ diff --git a/commands/random/temperature.js b/commands/numedit/temperature.js similarity index 98% rename from commands/random/temperature.js rename to commands/numedit/temperature.js index e4e7186d..16587bb8 100644 --- a/commands/random/temperature.js +++ b/commands/numedit/temperature.js @@ -4,7 +4,7 @@ module.exports = class TemperatureCommand extends Command { constructor(client) { super(client, { name: 'temperature', - group: 'random', + group: 'numedit', memberName: 'temperature', description: 'Converts temperatures to/from Celsius, Fahrenheit, or Kelvin.', args: [ diff --git a/commands/imageedit/meme.js b/commands/random/meme.js similarity index 98% rename from commands/imageedit/meme.js rename to commands/random/meme.js index 776b1eaa..6c1f3474 100644 --- a/commands/imageedit/meme.js +++ b/commands/random/meme.js @@ -5,7 +5,7 @@ module.exports = class MemeCommand extends Command { constructor(client) { super(client, { name: 'meme', - group: 'imageedit', + group: 'random', memberName: 'meme', description: 'Sends a Meme with text of your choice, and a background of your choice.', details: `**Codes:** ${codes.join(', ')}`, diff --git a/commands/imageedit/memecodes.json b/commands/random/memecodes.json similarity index 100% rename from commands/imageedit/memecodes.json rename to commands/random/memecodes.json diff --git a/index.js b/index.js index f6a9e14a..298f0148 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ client.registry ['randomimg', 'Random Image'], ['avataredit', 'Avatar Manipulation'], ['textedit', 'Text Manipulation'], - ['imageedit', 'Image Manipulation'], + ['numedit', 'Number Manipulation'], ['search', 'Search'], ['games', 'Games'], ['random', 'Random/Other'], diff --git a/package.json b/package.json index 96241102..9e776b6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "18.3.0", + "version": "18.3.1", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {