From 6be4c4b077a8246d8c1910014516d4e6aa9d1788 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 9 Dec 2022 23:04:53 +0700 Subject: [PATCH] fix: solve captcha --- src/rest/RequestHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/RequestHandler.js b/src/rest/RequestHandler.js index 2c559fb..ad328ea 100644 --- a/src/rest/RequestHandler.js +++ b/src/rest/RequestHandler.js @@ -356,7 +356,7 @@ class RequestHandler { data?.captcha_service && this.manager.client.options.captchaService && request.retries < 4 && - captchaMessage.includes(data.captcha_key[0]) + captchaMessage.some(s => data.captcha_key[0].includes(s)) ) { // Retry the request after a captcha is solved this.manager.client.emit(