From c87c32af71cdb764b0e066b57824e51afd64bf88 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Thu, 4 Mar 2021 11:58:14 +0100 Subject: [PATCH] Change example games --- src/example.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/example.ts b/src/example.ts index a6737c2..43bbda0 100644 --- a/src/example.ts +++ b/src/example.ts @@ -29,9 +29,9 @@ main(); async function main() { // Local variables const gameList = [ - "Four Elements Trainer", - "corrupted kingdoms", - "summertime saga" + "City of broken dreamers", + "Seeds of chaos", + "MIST" ]; // Log in the platform @@ -61,13 +61,14 @@ async function main() { const query: HandiworkSearchQuery = new HandiworkSearchQuery(); query.category = "games"; query.keywords = gamename; + query.order = "likes"; // To find the most popular games // Fetch the first result const searchResult = await searchHandiwork(query, 1); // No game found if (searchResult.length === 0) { - console.log(`No data found for '${gamename}'`); + console.log(`No data found for '${gamename}'\n`); continue; }