Skip to content

Commit

Permalink
fix /blackjack
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayrox committed Jan 2, 2022
1 parent 8976870 commit 63e7d8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Commands/Games/blackjack.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = {



blackjackEmbed.description = "\n**[Voir les Règles](https://fr.wikipedia.org/wiki/Blackjack_(jeu)**"
blackjackEmbed.description = "\n**[Voir les Règles](https://fr.wikipedia.org/wiki/Blackjack_(jeu))**"
blackjackEmbed.addFields(
{ name: "- Votre Main -", value: "-", inline: true },
{ name: `- ( ${Score(playerHand)} ) - SCORE - ( ${Score(botHand)} ) -`, value: "--------------------------", inline: true },
Expand All @@ -123,7 +123,7 @@ module.exports = {
blackjackCollector.on('collect', async (btn) => {


await btn.deferUpdate()


if (btn.user.id !== message.member.id) {
return await btn.reply({
Expand All @@ -132,6 +132,8 @@ module.exports = {
})
}

await btn.deferUpdate()

if (btn.customId === 'BJ-abandon') {

blackjackCollector.stop("abandon")
Expand Down Expand Up @@ -247,6 +249,7 @@ module.exports = {
await blackjack.edit(
{
embeds: [errorEmbed().setDescription("Vous n'avez pas répondu dans le temps imparti")],
components: [],
}
)
break;
Expand All @@ -263,6 +266,7 @@ module.exports = {
await blackjack.edit(
{
embeds: [errorEmbed().setDescription("Vous n'avez pas répondu dans le temps imparti")],
components: [],
}
)
}
Expand Down

0 comments on commit 63e7d8c

Please sign in to comment.