Only allow up to 10 items to be ranked in rank

This commit is contained in:
Dragon Fire
2020-05-24 14:18:34 -04:00
parent 142941d534
commit 8043d7f5c5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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'));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "114.28.0",
"version": "114.28.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {