mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +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(', ')}`,
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "18.3.0",
|
||||
"version": "18.3.1",
|
||||
"description": "A Discord Bot",
|
||||
"main": "shardingmanager.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user