Port beatgame changes over to other commands

This commit is contained in:
baz 2025-11-15 16:35:25 +00:00
parent 319f43b6ca
commit 5b44355c06
2 changed files with 2 additions and 2 deletions

View File

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

View File

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