refactor caching to be better , uhh changed some things to v2,,,, other things?

This commit is contained in:
2026-01-12 10:06:40 -05:00
parent d00d5bb313
commit 3b8aeff340
7 changed files with 112 additions and 141 deletions

View File

@@ -22,7 +22,7 @@ module.exports = async (client, torn, config) => {
.setURL(`https://www.torn.com/factions.php?step=your&type=7#/tab=crimes&crimeId=${crime.id}`);
if (crime.rewards.money === 0) {
const itemPromises = crime.rewards.items.map(item =>
torn.cache.item(item.id).then(itemData => ({
torn.item(item.id, true).then(itemData => ({
quantity: item.quantity,
name: itemData.name,
value: itemData.value.market_price