mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Make imposter use numbers properly
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.29.6",
|
||||
"version": "119.29.7",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user