This commit is contained in:
Daniel Odendahl Jr
2017-11-06 23:29:20 +00:00
parent 10d5f3a684
commit a2ca0a0cc6
+4 -4
View File
@@ -60,8 +60,8 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
czars.shift(); czars.shift();
const black = blackCards[Math.floor(Math.random() * blackCards.length)]; const black = blackCards[Math.floor(Math.random() * blackCards.length)];
await msg.say(stripIndents` await msg.say(stripIndents`
The card czar will be ${czar.user.username}! The card czar will be **${czar.user.username}**!
The Black Card is: ${escapeMarkdown(black.text)} The Black Card is: **${escapeMarkdown(black.text)}**
Sending DMs... Sending DMs...
`); `);
const chosenCards = new Collection(); const chosenCards = new Collection();
@@ -76,7 +76,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
__**Your hand is**__: __**Your hand is**__:
${Array.from(player.hand).join('\n')} ${Array.from(player.hand).join('\n')}
**Black Card***: ${escapeMarkdown(black.text)} **Black Card**: ${escapeMarkdown(black.text)}
**Card Czar**: ${czar.user.username} **Card Czar**: ${czar.user.username}
Pick **${black.pick}** cards! Pick **${black.pick}** cards!
`); `);
@@ -119,7 +119,7 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
}; };
const chosen = await msg.channel.awaitMessages(filter, { const chosen = await msg.channel.awaitMessages(filter, {
max: 1, max: 1,
time: 30000 time: 120000
}); });
if (!chosen.size) { if (!chosen.size) {
await msg.say('Hmm... No one wins.'); await msg.say('Hmm... No one wins.');