mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Cleaner Looking args
This commit is contained in:
@@ -8,11 +8,13 @@ module.exports = class MagicBallCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: '8ball',
|
||||
description: 'Predicts your future.',
|
||||
args: [{
|
||||
key: 'question',
|
||||
prompt: 'What do you want to ask the 8 ball?',
|
||||
type: 'string'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'question',
|
||||
prompt: 'What do you want to ask the 8 ball?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,14 @@ module.exports = class ChooseCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'choose',
|
||||
description: 'Chooses between things.',
|
||||
args: [{
|
||||
key: 'choices',
|
||||
prompt: 'What choices do you want me pick from?',
|
||||
type: 'string',
|
||||
infinite: true
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'choices',
|
||||
prompt: 'What choices do you want me pick from?',
|
||||
type: 'string',
|
||||
infinite: true
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,13 @@ module.exports = class ComplimentCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'compliment',
|
||||
description: 'Compliments something/someone.',
|
||||
args: [{
|
||||
key: 'thing',
|
||||
prompt: 'What do you want to compliment?',
|
||||
type: 'string'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'thing',
|
||||
prompt: 'What do you want to compliment?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+13
-11
@@ -8,17 +8,19 @@ module.exports = class RandomNameCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'name',
|
||||
description: 'Generates a random name.',
|
||||
args: [{
|
||||
key: 'gender',
|
||||
prompt: 'Which gender do you want to generate a name for?',
|
||||
type: 'string',
|
||||
validate: gender => {
|
||||
if (['male', 'female'].includes(gender.toLowerCase()))
|
||||
return true;
|
||||
return 'Please enter either `male` or `female`.';
|
||||
},
|
||||
parse: gender => gender.toLowerCase()
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'gender',
|
||||
prompt: 'Which gender do you want to generate a name for?',
|
||||
type: 'string',
|
||||
validate: gender => {
|
||||
if (['male', 'female'].includes(gender.toLowerCase()))
|
||||
return true;
|
||||
return 'Please enter either `male` or `female`.';
|
||||
},
|
||||
parse: gender => gender.toLowerCase()
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -10,11 +10,13 @@ module.exports = class RateWaifuCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'ratewaifu',
|
||||
description: 'Rates your Waifu.',
|
||||
args: [{
|
||||
key: 'waifu',
|
||||
prompt: 'Who do you want to rate?',
|
||||
type: 'string'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'waifu',
|
||||
prompt: 'Who do you want to rate?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,13 @@ module.exports = class RoastCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'roast',
|
||||
description: 'Roasts something/someone.',
|
||||
args: [{
|
||||
key: 'thing',
|
||||
prompt: 'What do you want to roast?',
|
||||
type: 'string'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'thing',
|
||||
prompt: 'What do you want to roast?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -10,11 +10,14 @@ module.exports = class RollCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'roll',
|
||||
description: 'Rolls a dice with a maximum value you specify.',
|
||||
args: [{
|
||||
key: 'value',
|
||||
prompt: 'What is the maximum number you wish to appear?',
|
||||
type: 'integer'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'value',
|
||||
label: 'maximum number',
|
||||
prompt: 'What is the maximum number you wish to appear?',
|
||||
type: 'integer'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -10,11 +10,13 @@ module.exports = class ShipCommand extends Command {
|
||||
group: 'response',
|
||||
memberName: 'ship',
|
||||
description: 'Ships things/people together.',
|
||||
args: [{
|
||||
key: 'things',
|
||||
prompt: 'What do you want to ship together?',
|
||||
type: 'string'
|
||||
}]
|
||||
args: [
|
||||
{
|
||||
key: 'things',
|
||||
prompt: 'What do you want to ship together?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user