Fiddle with beatgame game_type filtering

This commit is contained in:
baz 2025-11-15 16:24:00 +00:00
parent e8b1b28892
commit d3b322bc79

View File

@ -37,7 +37,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 });