Prettify scripts

pull/81/head
MillenniumEarl 2021-03-15 21:35:56 +01:00
parent 62b5c8ccc8
commit a1afbbde20
1 changed files with 8 additions and 2 deletions

View File

@ -60,7 +60,11 @@ async function main() {
// Log in the platform // Log in the platform
console.log("Authenticating..."); console.log("Authenticating...");
const result = await login(process.env.F95_USERNAME, process.env.F95_PASSWORD, insert2faCode); const result = await login(
process.env.F95_USERNAME,
process.env.F95_PASSWORD,
insert2faCode
);
console.log(`Authentication result: ${result.message}\n`); console.log(`Authentication result: ${result.message}\n`);
// Manage failed login // Manage failed login
@ -83,7 +87,9 @@ async function main() {
latestQuery.includedTags = ["3d game"]; latestQuery.includedTags = ["3d game"];
const latestUpdates = await getLatestUpdates<Game>(latestQuery, 1); const latestUpdates = await getLatestUpdates<Game>(latestQuery, 1);
console.log(`"${latestUpdates.shift().name}" was the last "3d game" tagged game to be updated\n`); console.log(
`"${latestUpdates.shift().name}" was the last "3d game" tagged game to be updated\n`
);
// Get game data // Get game data
for (const gamename of gameList) { for (const gamename of gameList) {