From f0e42110672a16ab9f10433a7923f4bf0c1e74e4 Mon Sep 17 00:00:00 2001 From: Tyler Stewart Date: Sun, 5 Oct 2025 22:00:51 -0600 Subject: [PATCH] feat: remove fextralife code get --- get/src/codes.ts | 4 +--- get/src/source/fextralife.ts | 23 ----------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 get/src/source/fextralife.ts diff --git a/get/src/codes.ts b/get/src/codes.ts index 187e6d7..0be8f30 100644 --- a/get/src/codes.ts +++ b/get/src/codes.ts @@ -1,9 +1,7 @@ import { getOrcicornShiftCodes } from './source/orcicorn'; -import { getFextralifeShiftCodes } from './source/fextralife'; import { getCodeVaultShiftCodes } from './source/codevault'; export async function * getShiftCodes() { - yield * getFextralifeShiftCodes(); - yield * getOrcicornShiftCodes(); yield * getCodeVaultShiftCodes(); + yield * getOrcicornShiftCodes(); } diff --git a/get/src/source/fextralife.ts b/get/src/source/fextralife.ts deleted file mode 100644 index bfd8af1..0000000 --- a/get/src/source/fextralife.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ShiftCode } from "../types"; -import { SHIFT_CODE_REGEX } from "../const"; - -const BL4_SHIFT_CODES_URL = 'https://borderlands4.wiki.fextralife.com/SHiFT+Code+Guide'; - -export async function * getFextralifeBL4ShiftCodes(): AsyncGenerator { - const response = await fetch(BL4_SHIFT_CODES_URL); - const text = await response.text(); - const codes = text.matchAll(SHIFT_CODE_REGEX); - - for (const [code] of codes) { - yield { - code, - game: 'Borderlands 4', - platform: 'Universal', - reward: 'Unknown', - }; - } -} - -export async function * getFextralifeShiftCodes(): AsyncGenerator { - yield * getFextralifeBL4ShiftCodes(); -} \ No newline at end of file