Make imposter use numbers properly

This commit is contained in:
Dragon Fire
2020-10-10 23:09:05 -04:00
parent 6f04b626e5
commit ac60af0c0f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -96,11 +96,12 @@ module.exports = class ImposterCommand extends Command {
await delay(60000);
const choices = players.filter(player => !player.killed);
const ids = choices.map(player => player.id);
let i = 0;
await msg.say(stripIndents`
Alright, who do you think the imposter is? You have 1 minute to vote.
_Type the number of the player you think is the imposter._
${choices.map((player, i) => `**${i + 1}.** ${player.user.tag}`).join('\n')}
${choices.map(player => { i++; return `**${i}.** ${player.user.tag}`; }).join('\n')}
`);
const votes = new Collection();
const voteFilter = res => {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.29.6",
"version": "119.29.7",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {