diff --git a/assets/json/cards-against-humanity.json b/assets/json/cards-against-humanity.json index 8566ae5..48a5d7d 100644 --- a/assets/json/cards-against-humanity.json +++ b/assets/json/cards-against-humanity.json @@ -4366,6 +4366,7 @@ "Discord.", "Discord.js v12.", "hydrabolt.", - "Nomsy." + "Nomsy.", + "[object Object]" ] } diff --git a/commands/games/cards-against-humanity.js b/commands/games/cards-against-humanity.js index bf9f960..8e701a9 100644 --- a/commands/games/cards-against-humanity.js +++ b/commands/games/cards-against-humanity.js @@ -81,7 +81,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command { Sending DMs... `); const chosenCards = []; - await Promise.all(players.map(player => player.turn(msg.channel, czar, black, blackDeck, chosenCards))); + await Promise.all(players.map(player => player.turn(msg.channel, czar, black, whiteDeck, chosenCards))); if (!chosenCards.length) { await msg.util.sendNew('Hmm... No one even tried.'); continue; diff --git a/util/Collectors.js b/util/Collectors.js index a79ec9b..d7ee854 100644 --- a/util/Collectors.js +++ b/util/Collectors.js @@ -63,7 +63,11 @@ module.exports = class CollectorsUtil { return true; }); collector.on('collect', msg => { - const board = players.sort((a, b) => b.points - a.points).map((player, i) => `**${i + 1}.** ${player.user.tag}`); + let i = 0; + const board = players.sort((a, b) => b.points - a.points).map(player => { + i++; + return `**${i}.** ${player.user.tag}`; + }); msg.reply(stripIndents` **Leaderboard**: ${board.join('\n')}