mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Move Groups Around
This commit is contained in:
@@ -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(', ')}`,
|
||||
Reference in New Issue
Block a user