Add examples for math, units, and currency

This commit is contained in:
Dragon Fire
2024-05-23 17:43:35 -04:00
parent 8cda43d503
commit 84348c96e0
4 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -25,14 +25,16 @@ module.exports = class CurrencyCommand extends Command {
{
key: 'base',
type: 'string',
examples: ['USD'],
min: 3,
max: 3
max: 5
},
{
key: 'target',
type: 'string',
examples: ['JPY', 'GBP'],
min: 3,
max: 3
max: 5
}
]
});
+2 -1
View File
@@ -21,7 +21,8 @@ module.exports = class MathCommand extends Command {
args: [
{
key: 'expression',
type: 'string'
type: 'string',
examples: ['2 + 2', '2 * 2', '2 / 2', '2 - 2']
}
]
});
+2
View File
@@ -19,11 +19,13 @@ module.exports = class UnitsCommand extends Command {
{
key: 'base',
type: 'string',
examples: ['km', 'in'],
parse: base => base.toLowerCase()
},
{
key: 'target',
type: 'string',
examples: ['miles', 'cm'],
parse: target => target.toLowerCase()
}
]
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "152.0.0",
"version": "152.0.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"private": true,