mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Only allow up to 10 items to be ranked in rank
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user