mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 20:55:16 +00:00
removal of "awaits" (useless)
This commit is contained in:
parent
38d57c00b7
commit
4aa0be07af
1 changed files with 7 additions and 7 deletions
|
|
@ -191,7 +191,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
if (player.score === 21) {
|
if (player.score === 21) {
|
||||||
bet("win");
|
bet("win");
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(
|
endMsg(
|
||||||
`Win! You got 21!`,
|
`Win! You got 21!`,
|
||||||
`Bot had ${dealer.score.toString()}`,
|
`Bot had ${dealer.score.toString()}`,
|
||||||
`GREEN`
|
`GREEN`
|
||||||
|
|
@ -200,7 +200,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
if (player.score > 21) {
|
if (player.score > 21) {
|
||||||
bet("lose");
|
bet("lose");
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(
|
endMsg(
|
||||||
`Lost! You reached over 21!`,
|
`Lost! You reached over 21!`,
|
||||||
`Bot had ${dealer.score.toString()}`,
|
`Bot had ${dealer.score.toString()}`,
|
||||||
`RED`
|
`RED`
|
||||||
|
|
@ -209,7 +209,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
if (dealer.score === 21) {
|
if (dealer.score === 21) {
|
||||||
bet("lose");
|
bet("lose");
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(
|
endMsg(
|
||||||
`Lost! The dealer got 21!`,
|
`Lost! The dealer got 21!`,
|
||||||
`Bot had ${dealer.score.toString()}`,
|
`Bot had ${dealer.score.toString()}`,
|
||||||
`RED`
|
`RED`
|
||||||
|
|
@ -218,7 +218,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
if (dealer.score > 21) {
|
if (dealer.score > 21) {
|
||||||
bet("win");
|
bet("win");
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(
|
endMsg(
|
||||||
`Win! Bot reached over 21!`,
|
`Win! Bot reached over 21!`,
|
||||||
`Bot had ${dealer.score.toString()}`,
|
`Bot had ${dealer.score.toString()}`,
|
||||||
`GREEN`
|
`GREEN`
|
||||||
|
|
@ -231,7 +231,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
) {
|
) {
|
||||||
bet("win");
|
bet("win");
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(
|
endMsg(
|
||||||
`Win! You defeated Bot!`,
|
`Win! You defeated Bot!`,
|
||||||
`Bot had ${dealer.score.toString()}`,
|
`Bot had ${dealer.score.toString()}`,
|
||||||
`GREEN`
|
`GREEN`
|
||||||
|
|
@ -244,7 +244,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
) {
|
) {
|
||||||
bet("lose");
|
bet("lose");
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(
|
endMsg(
|
||||||
`Lost! Bot won!`,
|
`Lost! Bot won!`,
|
||||||
`Bot had ${dealer.score.toString()}`,
|
`Bot had ${dealer.score.toString()}`,
|
||||||
`RED`
|
`RED`
|
||||||
|
|
@ -256,7 +256,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
dealer.score < 21
|
dealer.score < 21
|
||||||
) {
|
) {
|
||||||
gameOver = true;
|
gameOver = true;
|
||||||
await endMsg(`Tie!`, `Bot had ${dealer.score.toString()}`, `RED`);
|
endMsg(`Tie!`, `Bot had ${dealer.score.toString()}`, `RED`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue