mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Fix island picking
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "126.3.3",
|
||||
"version": "126.3.4",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user