mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Add examples for math, units, and currency
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -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']
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "152.0.0",
|
||||
"version": "152.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"private": true,
|
||||
|
||||
Reference in New Issue
Block a user