automagically detect what max oc level is

This commit is contained in:
2025-11-09 21:03:47 -05:00
parent aa5c204d5c
commit 681d597dda
2 changed files with 37 additions and 18 deletions

View File

@@ -77,6 +77,11 @@ module.exports.faction = {
}
const data = await response.json();
return(data.crimes);
},
async upgrades() {
const response = await fetch(`https://api.torn.com/v2/faction/upgrades?key=${config.torn}`);
const data = await response.json();
return(data.upgrades);
}
}