Fix island picking

This commit is contained in:
Dragon Fire
2021-01-16 20:14:48 -05:00
parent c2e39b9b2e
commit 69d9707a15
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -55,11 +55,17 @@ module.exports = class IslandCommand extends Command {
await delay(120000);
const choices = players.filter(player => playersLeft.has(player.id));
const ids = choices.map(player => player.id);
let i = 0;
const display = choices.map(player => {
const res = `**${i + 1}.** ${player.user.tag}`;
i++;
return res;
});
await msg.say(stripIndents`
Alright, who do you want to kick off the island? You have 1 minute to vote.
_Type the number of the player you want to kick._
${choices.map((player, i) => `**${i + 1}.** ${player.user.tag}`).join('\n')}
${display.join('\n')}
`);
const votes = new Collection();
const voteFilter = res => {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "126.3.3",
"version": "126.3.4",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {