From 8043d7f5c580e6c2ceec44c89bb0d8d53462befa Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 May 2020 14:18:34 -0400 Subject: [PATCH] Only allow up to 10 items to be ranked in rank --- commands/random-res/rank.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/random-res/rank.js b/commands/random-res/rank.js index dd3cf1e5..41592af8 100644 --- a/commands/random-res/rank.js +++ b/commands/random-res/rank.js @@ -14,13 +14,13 @@ module.exports = class RankCommand extends Command { prompt: 'What choices do you want me rank?', type: 'string', infinite: true, - max: 1950 + max: 150 } ] }); } run(msg, { choices }) { - return msg.say(shuffle(choices).map((choice, i) => `**${i + 1}.** ${choice}`).join('\n')); + return msg.say(shuffle(choices).map((choice, i) => `**${i + 1}.** ${choice}`).slice(0, 10).join('\n')); } }; diff --git a/package.json b/package.json index 0005ef01..8b8622cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.28.0", + "version": "114.28.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {