Port beatgame changes over to other commands
This commit is contained in:
parent
319f43b6ca
commit
5b44355c06
@ -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 });
|
||||
|
||||
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user