mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Beep
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = class iTunesCommand extends Command {
|
|||||||
prompt: `What country should results be obtained for? Either ${list(countries, 'or')}.`,
|
prompt: `What country should results be obtained for? Either ${list(countries, 'or')}.`,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
validate: country => {
|
validate: country => {
|
||||||
if (countries.includes(country)) return true;
|
if (countries.includes(country.toLowerCase())) return true;
|
||||||
return `Invalid country, please enter either ${list(countries, 'or')}.`;
|
return `Invalid country, please enter either ${list(countries, 'or')}.`;
|
||||||
},
|
},
|
||||||
parse: country => country.toLowerCase()
|
parse: country => country.toLowerCase()
|
||||||
|
|||||||
Reference in New Issue
Block a user