mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { MessageEmbed, MessageActionRow, MessageButton } = require('discord.js');
|
||||
const { Aki, regions } = require('aki-api');
|
||||
const { list } = require('../../util/Util');
|
||||
|
||||
module.exports = class AkinatorCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -23,7 +22,6 @@ module.exports = class AkinatorCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'region',
|
||||
prompt: `What region do you want to use? Either ${list(regions, 'or')}.`,
|
||||
type: 'string',
|
||||
default: 'en',
|
||||
oneOf: regions,
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class AnagramicaCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'time',
|
||||
prompt: 'How long should the game last in seconds? Max 90, min 15.',
|
||||
type: 'integer',
|
||||
default: 45,
|
||||
max: 90,
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = class BlackjackCommand extends Command {
|
||||
{
|
||||
key: 'deckCount',
|
||||
label: 'amount of decks',
|
||||
prompt: 'How many decks do you want to use?',
|
||||
type: 'integer',
|
||||
default: 1,
|
||||
max: 8,
|
||||
|
||||
@@ -10,7 +10,6 @@ module.exports = class BubbleWrapCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How many bubbles should there be?',
|
||||
type: 'integer',
|
||||
default: 156,
|
||||
min: 1,
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = class ChanceCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'chance',
|
||||
prompt: 'What is the chance of winning? 1 in what?',
|
||||
type: 'string',
|
||||
default: 1000
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ module.exports = class DoorsCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'door',
|
||||
prompt: 'Which door number do you want to pick? A number from 1-3.',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 3
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class GuessSongCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'chart',
|
||||
prompt: `What chart do you want to use for the game? Either ${list(Object.keys(playlists, 'or'))}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.keys(playlists),
|
||||
parse: chart => chart.toLowerCase()
|
||||
|
||||
@@ -14,7 +14,6 @@ module.exports = class HorseInfoCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'horse',
|
||||
prompt: 'Which horse would you like to get information on?',
|
||||
type: 'string',
|
||||
validate: horse => {
|
||||
const valid = horses.filter(h => h.name.toLowerCase().includes(horse.toLowerCase()));
|
||||
|
||||
@@ -22,7 +22,6 @@ module.exports = class HungerGamesCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'tributes',
|
||||
prompt: 'Who should compete in the games? Up to 24 tributes can participate.',
|
||||
type: 'string',
|
||||
infinite: true,
|
||||
max: 20
|
||||
|
||||
@@ -13,7 +13,6 @@ module.exports = class LotteryCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'choices',
|
||||
prompt: 'What numbers do you choose? Only the first six will be counted.',
|
||||
type: 'integer',
|
||||
infinite: true,
|
||||
max: 70,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { list } = require('../../util/Util');
|
||||
const difficulties = ['baby', 'easy', 'medium', 'hard', 'extreme', 'impossible'];
|
||||
const operations = ['+', '-', '*'];
|
||||
const maxValues = {
|
||||
@@ -31,7 +30,6 @@ module.exports = class MathQuizCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'difficulty',
|
||||
prompt: `What should the difficulty of the game be? Either ${list(difficulties, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: difficulties,
|
||||
parse: difficulty => difficulty.toLowerCase()
|
||||
|
||||
@@ -15,7 +15,6 @@ module.exports = class MemoryCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'level',
|
||||
prompt: 'How many directions do you want to have to memorize?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 20
|
||||
|
||||
@@ -18,7 +18,6 @@ module.exports = class MinesweeperCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'size',
|
||||
prompt: 'What size board do you want to use?',
|
||||
type: 'integer',
|
||||
default: 9,
|
||||
max: 10,
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = class QuizCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'difficulty',
|
||||
prompt: `What should the difficulty of the game be? Either ${list(difficulties, 'or')}.`,
|
||||
type: 'string',
|
||||
default: '',
|
||||
oneOf: difficulties,
|
||||
|
||||
@@ -12,7 +12,6 @@ module.exports = class RockPaperScissorsCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'choice',
|
||||
prompt: 'Rock, Paper, or Scissors?',
|
||||
type: 'string',
|
||||
parse: choice => choice.toLowerCase()
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = class RouletteCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'space',
|
||||
prompt: 'What space do you want to bet on?',
|
||||
type: 'string',
|
||||
validate: space => {
|
||||
if (numbers.includes(Number.parseInt(space, 10))) return true;
|
||||
|
||||
@@ -42,7 +42,6 @@ module.exports = class TarotCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'question',
|
||||
prompt: 'What question should the tarot reading answer?',
|
||||
type: 'string',
|
||||
max: 50
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ const Command = require('../../framework/Command');
|
||||
const { MessageActionRow, MessageButton } = require('discord.js');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const request = require('node-superfetch');
|
||||
const { list } = require('../../util/Util');
|
||||
const difficulties = ['easy', 'medium', 'hard'];
|
||||
|
||||
module.exports = class TrueOrFalseCommand extends Command {
|
||||
@@ -25,7 +24,6 @@ module.exports = class TrueOrFalseCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'difficulty',
|
||||
prompt: `What should the difficulty of the game be? Either ${list(difficulties, 'or')}.`,
|
||||
type: 'string',
|
||||
default: '',
|
||||
oneOf: difficulties,
|
||||
|
||||
@@ -67,7 +67,6 @@ module.exports = class WhosThatPokemonCryCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'pokemon',
|
||||
prompt: 'What Pokémon do you want to use?',
|
||||
type: 'integer',
|
||||
max: client.pokemon.pokemonCountWithCry,
|
||||
min: 0,
|
||||
|
||||
@@ -74,7 +74,6 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'pokemon',
|
||||
prompt: 'What Pokémon do you want to use?',
|
||||
type: 'integer',
|
||||
max: client.pokemon.pokemonCount,
|
||||
min: 0,
|
||||
|
||||
Reference in New Issue
Block a user