This commit is contained in:
Daniel Odendahl Jr
2017-11-06 22:52:29 +00:00
parent 78e7c70d7b
commit 346b1ffc72
+2 -1
View File
@@ -49,7 +49,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
points: 0, points: 0,
hand: cards hand: cards
}); });
await player.send('Testing...'); await player.send('Hi! Waiting for your turn to start...');
i++; i++;
} }
let czars = Array.from(players.values()); let czars = Array.from(players.values());
@@ -66,6 +66,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
`); `);
const chosenCards = new Collection(); const chosenCards = new Collection();
for (const player of players.values()) { for (const player of players.values()) {
if (player.user.id === czar.user.id) continue;
player.hand.add(whiteCards[Math.floor(Math.random() * whiteCards.length)]); player.hand.add(whiteCards[Math.floor(Math.random() * whiteCards.length)]);
if (player.hand.size < black.pick) { if (player.hand.size < black.pick) {
await player.user.send('You don\'t have enough cards!'); await player.user.send('You don\'t have enough cards!');