This commit is contained in:
Daniel Odendahl Jr
2018-03-23 22:35:21 +00:00
parent 9b8cc68b97
commit 0702a2d459
15 changed files with 48 additions and 96 deletions
+1 -4
View File
@@ -18,10 +18,7 @@ module.exports = class HoroscopeCommand extends Command {
key: 'sign',
prompt: `Which sign would you like to get the horoscope for? Either ${list(signs, 'or')}.`,
type: 'string',
validate: sign => {
if (signs.includes(sign.toLowerCase())) return true;
return `Invalid sign, please enter either ${list(signs, 'or')}.`;
},
oneOf: signs,
parse: sign => sign.toLowerCase()
}
]
+1 -4
View File
@@ -18,10 +18,7 @@ module.exports = class NekoAtsumePasswordCommand extends Command {
prompt: `What locale do you want to use? Either ${list(locales, 'or')}.`,
type: 'string',
default: 'en',
validate: locale => {
if (locales.includes(locale.toLowerCase())) return true;
return `Invalid locale, please enter either ${list(locales, 'or')}.`;
},
oneOf: locales,
parse: locale => locale.toLowerCase()
}
]