From 475964abf419ea67fa3c0a046f28ae7f2e60f990 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 9 Oct 2018 01:07:03 +0000 Subject: [PATCH] Add maxes to lots of image edit commands --- commands/image-edit/achievement.js | 3 ++- commands/image-edit/demotivational-poster.js | 4 +++- commands/image-edit/new-password.js | 6 ++++-- package.json | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/commands/image-edit/achievement.js b/commands/image-edit/achievement.js index a8209a34..b0d650e7 100644 --- a/commands/image-edit/achievement.js +++ b/commands/image-edit/achievement.js @@ -21,7 +21,8 @@ module.exports = class AchievementCommand extends Command { { key: 'text', prompt: 'What should the text of the achievement be?', - type: 'string' + type: 'string', + max: 50 } ] }); diff --git a/commands/image-edit/demotivational-poster.js b/commands/image-edit/demotivational-poster.js index 05197f2c..64a8b966 100644 --- a/commands/image-edit/demotivational-poster.js +++ b/commands/image-edit/demotivational-poster.js @@ -25,12 +25,14 @@ module.exports = class DemotivationalPosterCommand extends Command { key: 'title', prompt: 'What should the title of the poster be?', type: 'string', + max: 50, parse: title => title.toUpperCase() }, { key: 'text', prompt: 'What should the text of the poster be?', - type: 'string' + type: 'string', + max: 100 }, { key: 'image', diff --git a/commands/image-edit/new-password.js b/commands/image-edit/new-password.js index 72da543d..6a021fdc 100644 --- a/commands/image-edit/new-password.js +++ b/commands/image-edit/new-password.js @@ -23,12 +23,14 @@ module.exports = class NewPasswordCommand extends Command { { key: 'weak', prompt: 'What should the text of the weak password be?', - type: 'string' + type: 'string', + max: 50 }, { key: 'strong', prompt: 'What should the text of the strong password be?', - type: 'string' + type: 'string', + max: 50 } ] }); diff --git a/package.json b/package.json index 2b6c1c74..ea30b85e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "93.1.0", + "version": "93.1.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {