From 4aa0be07afb10c5e31d78663ea608f8f131763dc Mon Sep 17 00:00:00 2001 From: Krishna Date: Fri, 16 Dec 2022 21:59:37 +0530 Subject: [PATCH] removal of "awaits" (useless) --- src/commands/casino/blackjack.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commands/casino/blackjack.js b/src/commands/casino/blackjack.js index 28cccbc..aefb0cf 100644 --- a/src/commands/casino/blackjack.js +++ b/src/commands/casino/blackjack.js @@ -191,7 +191,7 @@ module.exports = async (client, interaction, args) => { if (player.score === 21) { bet("win"); gameOver = true; - await endMsg( + endMsg( `Win! You got 21!`, `Bot had ${dealer.score.toString()}`, `GREEN` @@ -200,7 +200,7 @@ module.exports = async (client, interaction, args) => { if (player.score > 21) { bet("lose"); gameOver = true; - await endMsg( + endMsg( `Lost! You reached over 21!`, `Bot had ${dealer.score.toString()}`, `RED` @@ -209,7 +209,7 @@ module.exports = async (client, interaction, args) => { if (dealer.score === 21) { bet("lose"); gameOver = true; - await endMsg( + endMsg( `Lost! The dealer got 21!`, `Bot had ${dealer.score.toString()}`, `RED` @@ -218,7 +218,7 @@ module.exports = async (client, interaction, args) => { if (dealer.score > 21) { bet("win"); gameOver = true; - await endMsg( + endMsg( `Win! Bot reached over 21!`, `Bot had ${dealer.score.toString()}`, `GREEN` @@ -231,7 +231,7 @@ module.exports = async (client, interaction, args) => { ) { bet("win"); gameOver = true; - await endMsg( + endMsg( `Win! You defeated Bot!`, `Bot had ${dealer.score.toString()}`, `GREEN` @@ -244,7 +244,7 @@ module.exports = async (client, interaction, args) => { ) { bet("lose"); gameOver = true; - await endMsg( + endMsg( `Lost! Bot won!`, `Bot had ${dealer.score.toString()}`, `RED` @@ -256,7 +256,7 @@ module.exports = async (client, interaction, args) => { dealer.score < 21 ) { gameOver = true; - await endMsg(`Tie!`, `Bot had ${dealer.score.toString()}`, `RED`); + endMsg(`Tie!`, `Bot had ${dealer.score.toString()}`, `RED`); } }