mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Remove some
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = class RockPaperScissorsCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'choice',
|
||||
prompt: '`Rock`, `Paper`, or `Scissors`?',
|
||||
prompt: 'Rock, Paper, or Scissors?',
|
||||
type: 'string',
|
||||
parse: (choice) => choice.toLowerCase()
|
||||
}
|
||||
|
||||
@@ -14,12 +14,12 @@ module.exports = class LockdownCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: 'Please enter either `start` or `stop`.',
|
||||
prompt: 'Please enter either start or stop.',
|
||||
type: 'string',
|
||||
default: 'start',
|
||||
validate: (type) => {
|
||||
if (['start', 'stop'].includes(type.toLowerCase())) return true;
|
||||
else return 'Please enter either `start` or `stop`.';
|
||||
else return 'Please enter either start or stop.';
|
||||
},
|
||||
parse: (type) => type.toLowerCase()
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = class TemperatureCommand extends Command {
|
||||
type: 'string',
|
||||
validate: (base) => {
|
||||
if (['celsius', 'fahrenheit', 'kelvin'].includes(base.toLowerCase())) return true;
|
||||
else return 'Please enter either `celsius`, `fahrenheit`, or `kelvin`.';
|
||||
else return 'Please enter either celsius, fahrenheit, or kelvin.';
|
||||
},
|
||||
parse: (base) => base.toLowerCase()
|
||||
},
|
||||
@@ -24,7 +24,7 @@ module.exports = class TemperatureCommand extends Command {
|
||||
type: 'string',
|
||||
validate: (to) => {
|
||||
if (['celsius', 'fahrenheit', 'kelvin'].includes(to.toLowerCase())) return true;
|
||||
else return 'Please enter either `celsius`, `fahrenheit`, or `kelvin`.';
|
||||
else return 'Please enter either celsius, fahrenheit, or kelvin.';
|
||||
},
|
||||
parse: (to) => to.toLowerCase()
|
||||
},
|
||||
|
||||
@@ -16,7 +16,7 @@ module.exports = class RandomNameCommand extends Command {
|
||||
default: 'both',
|
||||
validate: (gender) => {
|
||||
if (['male', 'female', 'both'].includes(gender.toLowerCase())) return true;
|
||||
else return 'Please enter either `male`, `female`, or `both`.';
|
||||
else return 'Please enter either male, female, or both.';
|
||||
},
|
||||
parse: (gender) => gender.toLowerCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user