mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Cats
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = class CurrencyCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'base',
|
key: 'base',
|
||||||
prompt: 'What currency code do you want to use as the base?',
|
prompt: `What currency code do you want to use as the base? Either ${list(codes, 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: base => {
|
validate: base => {
|
||||||
if (codes.includes(base.toUpperCase())) return true;
|
if (codes.includes(base.toUpperCase())) return true;
|
||||||
@@ -24,7 +24,7 @@ module.exports = class CurrencyCommand extends Command {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'target',
|
key: 'target',
|
||||||
prompt: 'What currency code do you want to convert to?',
|
prompt: `What currency code do you want to convert to? Either ${list(codes, 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: target => {
|
validate: target => {
|
||||||
if (codes.includes(target.toUpperCase())) return true;
|
if (codes.includes(target.toUpperCase())) return true;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = class TemperatureCommand extends Command {
|
|||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
key: 'base',
|
key: 'base',
|
||||||
prompt: 'What temperature unit do you want to use as the base?',
|
prompt: `What temperature unit do you want to use as the base? Either ${list(units, 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: base => {
|
validate: base => {
|
||||||
if (units.includes(base.toLowerCase())) return true;
|
if (units.includes(base.toLowerCase())) return true;
|
||||||
@@ -22,7 +22,7 @@ module.exports = class TemperatureCommand extends Command {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'target',
|
key: 'target',
|
||||||
prompt: 'What temperature unit do you want to convert to?',
|
prompt: `What temperature unit do you want to convert to? Either ${list(units, 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: target => {
|
validate: target => {
|
||||||
if (units.includes(target.toLowerCase())) return true;
|
if (units.includes(target.toLowerCase())) return true;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ module.exports = class TranslateCommand extends Command {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'target',
|
key: 'target',
|
||||||
prompt: 'Which language would you like to translate to?',
|
prompt: `Which language would you like to translate to? Either ${list(Object.keys(codes), 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: target => {
|
validate: target => {
|
||||||
if (codes[target.toLowerCase()]) return true;
|
if (codes[target.toLowerCase()]) return true;
|
||||||
@@ -36,7 +36,7 @@ module.exports = class TranslateCommand extends Command {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'original',
|
key: 'original',
|
||||||
prompt: 'Which language is your text in?',
|
prompt: `Which language is your text in? Either ${list(Object.keys(codes), 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
validate: original => {
|
validate: original => {
|
||||||
|
|||||||
Reference in New Issue
Block a user