mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -42,7 +42,6 @@ module.exports = class ApplesToApplesCommand extends Command {
|
||||
{
|
||||
key: 'maxPts',
|
||||
label: 'awesome points',
|
||||
prompt: 'What amount of awesome points should determine the winner?',
|
||||
type: 'integer',
|
||||
max: 20,
|
||||
min: 1
|
||||
|
||||
@@ -20,7 +20,6 @@ module.exports = class BalloonPopCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'playersCount',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 2,
|
||||
max: 100
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class BattleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to battle? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class BingoCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'playersCount',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 100
|
||||
|
||||
@@ -337,12 +337,10 @@ module.exports = class CarRaceCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'car',
|
||||
prompt: `What car do you want to use? Either ${list(cars, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: cars,
|
||||
parse: car => car.toLowerCase()
|
||||
|
||||
@@ -42,7 +42,6 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
|
||||
{
|
||||
key: 'maxPts',
|
||||
label: 'awesome points',
|
||||
prompt: 'What amount of awesome points should determine the winner?',
|
||||
type: 'integer',
|
||||
max: 20,
|
||||
min: 1
|
||||
|
||||
@@ -35,19 +35,16 @@ module.exports = class ChessCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'time',
|
||||
prompt: 'How long should the chess timers be set for (in minutes)? Use 0 for infinite.',
|
||||
type: 'integer',
|
||||
max: 120,
|
||||
min: 0
|
||||
},
|
||||
{
|
||||
key: 'fen',
|
||||
prompt: 'What FEN would you like to use for the start board?',
|
||||
type: 'string',
|
||||
default: '',
|
||||
validate: fen => validateFEN(fen)
|
||||
|
||||
@@ -28,12 +28,10 @@ module.exports = class ConnectFourCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'color',
|
||||
prompt: `What color do you want to be? Either an emoji or one of ${list(Object.keys(colors), 'or')}.`,
|
||||
type: 'custom-emoji|default-emoji|string',
|
||||
validate: (color, msg) => {
|
||||
const hasEmoji = new RegExp(`^(?:${emojiRegex().toString()})$`).test(color);
|
||||
|
||||
@@ -18,19 +18,16 @@ module.exports = class CramCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge?',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'color',
|
||||
prompt: `What color do you want to be? Either ${list(Object.keys(colors), 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(colors),
|
||||
parse: color => color.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'size',
|
||||
prompt: 'What board size do you want to use?',
|
||||
type: 'integer',
|
||||
min: 3,
|
||||
max: 10,
|
||||
|
||||
@@ -18,19 +18,16 @@ module.exports = class DomineeringCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge?',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'color',
|
||||
prompt: `What color do you want to be? Either ${list(Object.keys(colors), 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(colors),
|
||||
parse: color => color.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'size',
|
||||
prompt: 'What board size do you want to use?',
|
||||
type: 'integer',
|
||||
min: 3,
|
||||
max: 10,
|
||||
|
||||
@@ -15,7 +15,6 @@ module.exports = class DotsAndBoxesCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge?',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = class EmojiEmojiRevolutionCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to play against?',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -40,7 +40,6 @@ module.exports = class GuesspionageCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'players',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min,
|
||||
max
|
||||
|
||||
@@ -15,7 +15,6 @@ module.exports = class GunfightCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to gunfight?',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = class ImposterCommand extends Command {
|
||||
{
|
||||
key: 'playersCount',
|
||||
label: 'players',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 3,
|
||||
max: 20
|
||||
|
||||
@@ -16,7 +16,6 @@ module.exports = class IslandCommand extends Command {
|
||||
{
|
||||
key: 'playersCount',
|
||||
label: 'players',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 3,
|
||||
max: 20
|
||||
|
||||
@@ -20,7 +20,6 @@ module.exports = class JengaCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -31,7 +31,6 @@ module.exports = class LieSwatterCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'players',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 100
|
||||
|
||||
@@ -14,12 +14,10 @@ module.exports = class NimCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'rows',
|
||||
prompt: 'How many rows do you want to have?',
|
||||
type: 'integer',
|
||||
default: 5,
|
||||
min: 1,
|
||||
|
||||
@@ -20,12 +20,10 @@ module.exports = class ObstructionCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge?',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'size',
|
||||
prompt: 'What board size do you want to use?',
|
||||
type: 'integer',
|
||||
min: 6,
|
||||
max: 10,
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class PickANumberCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to play against? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class PokerCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'playersCount',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min,
|
||||
max
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = class QuizDuelCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'players',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 100
|
||||
|
||||
@@ -14,7 +14,6 @@ module.exports = class RussianRouletteCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'playersCount',
|
||||
prompt: 'How many players are you expecting to have?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 7
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class SpamWarCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge?',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -16,7 +16,6 @@ module.exports = class TicTacToeCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge? To play against AI, choose me.',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class TypingRaceCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to race against?',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -25,12 +25,10 @@ module.exports = class WordChainCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to challenge?',
|
||||
type: 'user'
|
||||
},
|
||||
{
|
||||
key: 'time',
|
||||
prompt: 'How long do you want to wait for input of new words (in seconds)?',
|
||||
type: 'integer',
|
||||
default: 10,
|
||||
max: 10,
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class WordSpudCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'opponent',
|
||||
prompt: 'What user would you like to play against?',
|
||||
type: 'user'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user