From bfbbe46b97bad9f21905d53d03eeb09cba52f6ac Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 20 Dec 2023 17:06:51 -0600 Subject: pronoun detecting and fixes --- commands/games/battleship.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/games/battleship.js') 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}) -- cgit v1.2.3