Move Groups Around

This commit is contained in:
Daniel Odendahl Jr
2017-05-06 03:57:56 +00:00
parent 77b3a8ead8
commit c27ed061fb
8 changed files with 7 additions and 8 deletions
@@ -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}`);
}
@@ -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: [
@@ -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: [
@@ -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(', ')}`,
+1 -1
View File
@@ -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'],
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "18.3.0",
"version": "18.3.1",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {