feat: add haki user categorization in character fetch logic
Build Docker Image / build (push) Successful in 1m57s
Build Docker Image / build (push) Successful in 1m57s
This commit is contained in:
@@ -495,6 +495,17 @@ async function fetchCharacter(
|
|||||||
let hakiArmament = false;
|
let hakiArmament = false;
|
||||||
let hakiConqueror = false;
|
let hakiConqueror = false;
|
||||||
|
|
||||||
|
for (const cat of categories) {
|
||||||
|
const catName = cat['*'] || '';
|
||||||
|
if (catName === 'Observation_Haki_Users') {
|
||||||
|
hakiObservation = true;
|
||||||
|
} else if (catName === 'Armament_Haki_Users') {
|
||||||
|
hakiArmament = true;
|
||||||
|
} else if (catName === 'Supreme_King_Haki_Users') {
|
||||||
|
hakiConqueror = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Extract bounty
|
// Extract bounty
|
||||||
const bounty = extractBounty($);
|
const bounty = extractBounty($);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user