works on system, lets try on docker

This commit is contained in:
2025-12-13 06:26:39 -05:00
parent 6f416d3912
commit 5c2ed523b9
7 changed files with 1377 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ module.exports.faction = {
async upgrades() {
const response = await fetch(`https://api.torn.com/v2/faction/upgrades?key=${config.torn}`);
const data = await response.json();
return(data.upgrades);
return(data);
},
async news(category, from) {
const response = await fetch(`https://api.torn.com/v2/faction/news?striptags=false&limit=100&sort=DESC&from=${from}&cat=${category}&key=${config.torn}`)