aboutsummaryrefslogtreecommitdiff
path: root/commands/games/battleship.js
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-20 17:06:51 -0600
committerame <[email protected]>2023-12-20 17:06:51 -0600
commitbfbbe46b97bad9f21905d53d03eeb09cba52f6ac (patch)
tree3467cb2b555125123c01f67aadb9daa201bae741 /commands/games/battleship.js
parentefe4a6017895128c3c41fb81fbbb3a7dbf22ad08 (diff)
pronoun detecting and fixes
Diffstat (limited to 'commands/games/battleship.js')
-rw-r--r--commands/games/battleship.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/games/battleship.js b/commands/games/battleship.js
index 2d71f03..136124a 100644
--- a/commands/games/battleship.js
+++ b/commands/games/battleship.js
@@ -164,7 +164,8 @@ module.exports = {
if(bttl_db.length==0)
return args.message.reply({content:"id not found!",ephemeral:true})
}
- let game_test = db.BattleShip.findAll({where:{p1_id:args.message.author.id,status:"open"}})
+ let game_test = await db.BattleShip.findAll({where:{p1_id:args.message.author.id,status:"open"}})
+
if(game_test.length!=0)
return args.message.reply({content:"you are already in a game!",ephemeral:true})