mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -43,14 +43,12 @@ module.exports = class AnimaleseCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'pitch',
|
||||
prompt: `What pitch do you want to use? Either ${list(Object.keys(pitches, 'or'))}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(pitches),
|
||||
parse: pitch => pitches[pitch.toLowerCase()]
|
||||
},
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text should be said?',
|
||||
type: 'string',
|
||||
validate: text => {
|
||||
if (!this.processScript(text)) return 'This text has no audible characters.';
|
||||
|
||||
@@ -38,7 +38,6 @@ module.exports = class DECTalkCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text do you want to say?',
|
||||
type: 'string',
|
||||
max: 1024
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ module.exports = class PlayCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'query',
|
||||
prompt: 'What video would you like to play? Either a URL or search query.',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -29,14 +29,12 @@ module.exports = class TtsCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'accent',
|
||||
prompt: `What accent do you want to use? Either ${list(accents, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: accents,
|
||||
parse: accent => accent.toUpperCase()
|
||||
},
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text do you want to say?',
|
||||
type: 'string',
|
||||
max: 200
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user