From 66dcdd4a7a716f5bd4d30f4f55ccc530e17b9ec8 Mon Sep 17 00:00:00 2001 From: TheNetsky <56271887+TheNetsky@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:10:47 +0100 Subject: [PATCH] 1.2.4 Disable "This or That" quiz. --- package.json | 2 +- src/functions/activities/ThisOrThat.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b0fef84..02c000c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "microsoft-rewards-script", - "version": "1.2.2", + "version": "1.2.4", "description": "Automatically do tasks for Microsoft Rewards but in TS!", "main": "index.js", "engines": { diff --git a/src/functions/activities/ThisOrThat.ts b/src/functions/activities/ThisOrThat.ts index cd8768d..a73b6a7 100644 --- a/src/functions/activities/ThisOrThat.ts +++ b/src/functions/activities/ThisOrThat.ts @@ -8,6 +8,7 @@ export class ThisOrThat extends Workers { async doThisOrThat(page: Page) { this.bot.log('THIS-OR-THAT', 'Trying to complete ThisOrThat') + return try { // Check if the quiz has been started or not const quizNotStarted = await page.waitForSelector('#rqStartQuiz', { visible: true, timeout: 3000 }).then(() => true).catch(() => false)