Update CAH with new changes from IA

This commit is contained in:
Dragon Fire
2018-08-08 18:38:43 -04:00
parent fd4406ac1e
commit f2d789ff85
2 changed files with 17 additions and 4 deletions
+2 -3
View File
@@ -38,7 +38,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
this.playing.delete(msg.channel.id);
return msg.say('Game could not be started...');
}
const players = await this.generatePlayers(awaitedPlayers);
const players = this.generatePlayers(awaitedPlayers);
const czars = Array.from(players.values());
let winner = null;
while (!winner) {
@@ -138,7 +138,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
}
}
async generatePlayers(list) {
generatePlayers(list) {
const players = new Collection();
for (const user of list) {
const cards = new Set();
@@ -152,7 +152,6 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
points: 0,
hand: cards
});
await user.send('Hi! Waiting for your turn to start...');
}
return players;
}