mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fixes
This commit is contained in:
@@ -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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user