From 5b44355c06c7fb2bc2f61ab76e991d8c198f4e78 Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 15 Nov 2025 16:35:25 +0000 Subject: [PATCH] Port beatgame changes over to other commands --- commands/100-games/planGame.js | 2 +- commands/100-games/startplaying.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/100-games/planGame.js b/commands/100-games/planGame.js index b70b6e3..b8364ab 100644 --- a/commands/100-games/planGame.js +++ b/commands/100-games/planGame.js @@ -34,7 +34,7 @@ module.exports = { body = body.concat('fields *;'); let res = await getGameJson(body); - res = res.filter(entry => entry.status !== 6); + res = res.filter(entry => entry.game_type == 0); res.sort((a, b) => parseInt(b.total_rating_count) - parseInt(a.total_rating_count)); if (!res[0]) return interaction.editReply({ content: 'No game found for the options supplied.', ephemeral: true }); diff --git a/commands/100-games/startplaying.js b/commands/100-games/startplaying.js index 08874c0..d40e32d 100644 --- a/commands/100-games/startplaying.js +++ b/commands/100-games/startplaying.js @@ -34,7 +34,7 @@ module.exports = { body = body.concat('fields *;'); let res = await getGameJson(body); - res = res.filter(entry => entry.status !== 6); + res = res.filter(entry => entry.game_type == 0); res.sort((a, b) => parseInt(b.total_rating_count) - parseInt(a.total_rating_count)); if (!res[0]) return interaction.editReply({ content: 'No game found for the options supplied.', ephemeral: true });