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