From f18ebd083a8090fcf2e770d4ecf5e3b10abbe76c Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Wed, 17 Aug 2022 05:06:06 -0400 Subject: [PATCH] Add Bypass bot check log --- src/server.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 76c2cb2..18e22ea 100644 --- a/src/server.ts +++ b/src/server.ts @@ -78,7 +78,11 @@ const statusRequest = async ( /* Direct media or API access bypasses bot check, returning same response regardless of UA */ if (isBotUA || flags.direct || flags.api) { - console.log(`Matched bot UA ${userAgent}`); + if (isBotUA) { + console.log(`Matched bot UA ${userAgent}`); + } else { + console.log('Bypass bot check'); + } /* This throws the necessary data to handleStatus (in status.ts) */ const statusResponse = await handleStatus(