mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
ESRB Exact Search
This commit is contained in:
@@ -63,6 +63,6 @@ module.exports = class EsrbCommand extends Command {
|
||||
});
|
||||
const body = JSON.parse(text);
|
||||
if (!body.games.length) return null;
|
||||
return body.games[0];
|
||||
return body.games.find(game => game.title.toLowerCase() === query.toLowerCase()) || body.games[0];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user