Compare commits

...

2 Commits

Author SHA1 Message Date
baz 1529dcca8f Remove comment 2023-12-16 20:34:57 +00:00
baz fcc0aa61da Update .gitignore 2023-12-11 23:03:51 +00:00
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules
.env
config.json
.sqlite

View File

@ -30,7 +30,6 @@ module.exports = {
if (!games[0]) return interaction.followUp('No game found.');
// await games.sort((a, b) => parseInt(b.total_rating_count) - parseInt(a.total_rating_count));
await games.sort((a, b) => {
return (a.total_rating_count == null) - (b.total_rating_count == null) || +(a.total_rating_count > b.total_rating_count) || -(a.total_rating_count < b.total_rating_count);
});