mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 11:21:16 +02:00
Remove prompt from all commands
This commit is contained in:
@@ -49,14 +49,12 @@ module.exports = class AceAttorneyCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'character',
|
||||
prompt: `What character do you want to use? Either ${list(Object.keys(characters), 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: Object.values(characters).reduce((a, b) => a.concat(b)),
|
||||
parse: character => character.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'quote',
|
||||
prompt: 'What should the character say?',
|
||||
type: 'string',
|
||||
max: 250
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ module.exports = class AchievementCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the text of the achievement be?',
|
||||
type: 'string',
|
||||
max: 50
|
||||
}
|
||||
|
||||
@@ -37,20 +37,17 @@ module.exports = class AxisCultSignUpCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'gender',
|
||||
prompt: 'What is your gender?',
|
||||
type: 'string',
|
||||
oneOf: ['male', 'female']
|
||||
},
|
||||
{
|
||||
key: 'age',
|
||||
prompt: 'How old are you?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 10000
|
||||
},
|
||||
{
|
||||
key: 'profession',
|
||||
prompt: 'What is your profession?',
|
||||
type: 'string',
|
||||
max: 15
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class CautionCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text should the caution sign say?',
|
||||
type: 'string',
|
||||
max: 500
|
||||
}
|
||||
|
||||
@@ -38,13 +38,11 @@ module.exports = class CertificateCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'reason',
|
||||
prompt: 'What is the reason for the award?',
|
||||
type: 'string',
|
||||
max: 30
|
||||
},
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What is the name of the person recieving the award?',
|
||||
type: 'string',
|
||||
max: 30,
|
||||
default: msg => msg.author.username
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class ChineseRestaurantCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the text of the sign be?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class DangerCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text should the danger sign say?',
|
||||
type: 'string',
|
||||
max: 500
|
||||
}
|
||||
|
||||
@@ -17,12 +17,10 @@ module.exports = class FontCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'font',
|
||||
prompt: 'What font do you want to use? Only fonts used in other commands are available.',
|
||||
type: 'font'
|
||||
},
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text do you want to type?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -27,7 +27,6 @@ module.exports = class GandhiQuoteCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'quote',
|
||||
prompt: 'What quote should Gandhi say?',
|
||||
type: 'string',
|
||||
max: 500
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ module.exports = class HighwaySignCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the text of the sign be?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -37,7 +37,6 @@ module.exports = class HollywoodStarCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What name should be on the star?',
|
||||
type: 'string',
|
||||
max: 30
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ module.exports = class JeopardyQuestionCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the text of the question be?',
|
||||
type: 'string',
|
||||
max: 500
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ module.exports = class LicensePlateCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text should the license plate say?',
|
||||
type: 'string',
|
||||
max: 10
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ module.exports = class SpeedLimitCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'limit',
|
||||
prompt: 'What limit should be on the sign?',
|
||||
type: 'string',
|
||||
max: 5
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@ module.exports = class SpongebobTimeCardCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the text of the time card be?',
|
||||
type: 'string',
|
||||
max: 280
|
||||
}
|
||||
|
||||
@@ -38,13 +38,11 @@ module.exports = class TweetCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
prompt: 'What user should say the tweet? Use the handle, not the name.',
|
||||
type: 'string',
|
||||
max: 15
|
||||
},
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What should the text of the tweet be?',
|
||||
type: 'string',
|
||||
max: 280
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { createCanvas, loadImage } = require('canvas');
|
||||
const path = require('path');
|
||||
const { list } = require('../../util/Util');
|
||||
const { wrapText } = require('../../util/Canvas');
|
||||
const characters = require('../../assets/json/undertale');
|
||||
|
||||
@@ -61,14 +60,12 @@ module.exports = class UndertaleCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'character',
|
||||
prompt: `What character do you want to use? Either ${list(characters, 'or')}.`,
|
||||
type: 'string',
|
||||
oneOf: characters,
|
||||
parse: character => character.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'quote',
|
||||
prompt: 'What should the character say?',
|
||||
type: 'string',
|
||||
max: 250
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@ module.exports = class ZeroDialogueCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'quote',
|
||||
prompt: 'What should Zero say?',
|
||||
type: 'string',
|
||||
max: 50
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user