Skip to content

Commit

Permalink
add more timeout on CG stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tombertrand committed Feb 26, 2024
1 parent e454b20 commit dd6f7be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
10 changes: 5 additions & 5 deletions server/cron/coingeckoStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const getPriceStats = async fiats => {
nano: json.nano,
});

await sleep(25_000);
await sleep(35_000);
}
} catch (err) {
console.log("Error", err);
Expand Down Expand Up @@ -90,7 +90,7 @@ const getMarketStats = async fiats => {

nodeCache.set(`${COINGECKO_MARKET_STATS}-${fiat}`, marketStats);

await sleep(20_000);
await sleep(30_000);
}
} catch (err) {
// rate limited
Expand Down Expand Up @@ -215,9 +215,9 @@ const getMarketCapStats = async () => {

// CoinGecko rate limit is 10 calls per seconds
if (i && !(i % 10)) {
await sleep(25_000);
await sleep(35_000);
} else {
await sleep(process.env.NODE_ENV === "production" ? 15_000 : 150);
await sleep(process.env.NODE_ENV === "production" ? 25_000 : 150);
}
}

Expand All @@ -227,7 +227,7 @@ const getMarketCapStats = async () => {
});
} else {
console.log(`Failed to get top ${top} cryptocurrencies`, cryptocurrencies);
await sleep(10_000);
await sleep(20_000);

getMarketCapStats();
return;
Expand Down
16 changes: 13 additions & 3 deletions src/pages/NanoBrowserQuest/Guide/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Increases the players attack speed a certain % and makes the player do damage fa

| Weapon weights | attack bonus | attack speed | Description |
| :------------- | :----------- | :----------- | :----------------------------------------------------------------------------------------------------------- |
| light | -15% | +20% | light weapons such as daggers and hatchets |
| light | -15% | +20% | light weapons such as daggers and hatchets |
| normal | 0% | 0% | regular weapons such as swords |
| heavy | +25% | -15% | some mauls and other big looking weapons |
| Super heavy | +35% | -20% | huge looking weapons slow but high dmg weapons(the dmg is massiveif you can add yourself attack speed items) |
Expand Down Expand Up @@ -395,6 +395,16 @@ Some items can drop with a certain amount of sockets (Weapons, Armors, Shields a
| ![{"name": "Gold Ring", "level": 1, "itemClass": "high", "bonus": [4,5,7], "requirement": 16}](https://nanobrowserquest.com/img/3/item-ringgold.png) | Gold Ring | ![{"name": "Unique Gold Ring", "level": 1, "itemClass": "high", "bonus": [2,5,6,8], "requirement": 16, "isUnique": true}](https://nanobrowserquest.com/img/3/item-ringgold.png) | Unique Gold Ring | Werewolf, Yeti, Skeleton Guard, Skeleton Commander, Undead Snake, Wraith, Zombie, Nercomancer, Cow |
| ![{"name": "Platinum Ring", "level": 1, "itemClass": "legendary", "bonus": [5,6,8,18,23,24], "requirement": 46}](https://nanobrowserquest.com/img/3/item-ringplatinum.png) | Platinum Ring | ![{"name": "Unique Platinum Ring", "level": 1, "itemClass": "legendary", "bonus": [1,4,6,32,34], "requirement": 46, "isUnique": true}](https://nanobrowserquest.com/img/3/item-ringplatinum.png) | Unique Platinum Ring | Poison Rat, Oculothorax, Kobold, Golem, Damned Snake, Posion Snake, Templar Skeleton, Ghost, Skeleton Berserker, Spider, Spiderqueen, Skeleton Archer, Spectral Wraith, Mage |

# Special Event Items

- Halloween
- Christmas

| Item | Name | Description |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------- | :-------------------------------------- |
| ![{"name": "S CVE-2023-40234", "level": 1, "itemClass": "high", "bonus": [0,3,4,11,42], "requirement": 42,"isUnique": true}](https://nanobrowserquest.com/img/3/item-helmpumkin.png) | helm Pumkin | Dropped dring the month of october 2023 |
| ![{"name": "S CVE-2023-40234", "level": 1, "itemClass": "high", "bonus": [0,3,4,11,42], "requirement": 42,"isUnique": true}](https://nanobrowserquest.com/img/3/item-helmpumkin.png) | helm Pumkin | Dropped dring the month of october 2023 |

# Cape

Attributes: Defense (1) + one of the following attributes: % Attack/Defence/Experience/Extra gold from enemies when player is in a party. The second attribute is randomly decided when the items is bought/dropped
Expand Down Expand Up @@ -486,8 +496,8 @@ These items are used to upgrade the items found in NBQ. It is done by putting th
| ![{"name": "Firefox Potion", "description": "Restores health to player by 40 hp" }](https://nanobrowserquest.com/img/3/item-firefoxpotion.png) | Firefox Potion | Restore player health to 100% and grands the player temporary immortality |
| ![{"name": "Wirt's leg", "level": 1, "itemClass": "low", "damage": 2, "magicDamage": 1, "requirement": 1}](https://nanobrowserquest.com/img/3/item-wirtleg.png) | Wirt's Leg | A low-level weapon with a secret special ability. Opening the secret level with a unique Wirt's Leg guarantees a 100% drop rate of the Cow King's Horn item from the Cow King. |
| ![{"name": "Skeleton King's Thoracic Cage", "description": "The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-skeletonkingcage.png) | Skeleton King's Thoracic Cage | The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter properties |
| ![{"name": "NFT", "description": "An exceptional Non-Fungible Token artifact, return it to Alkor to get a reward." }](https://nanobrowserquest.com/img/3/item-nft.png) | NFT | An exceptional Non-Fungible Token artifact, return it to Alkor to get a reward. |
| ![{"name": "Wing", "description": "The remnants of a dragon's wing., return it to Olaf to get a reward." }](https://nanobrowserquest.com/img/3/item-wing.png) | Wing | The remnants of a dragon's wing. |
| ![{"name": "NFT", "description": "An exceptional Non-Fungible Token artifact, return it to Alkor to get a reward." }](https://nanobrowserquest.com/img/3/item-nft.png) | NFT | An exceptional Non-Fungible Token artifact, return it to Alkor to get a reward. Drops 1/150 from Golems. |
| ![{"name": "Wing", "description": "The remnants of a dragon's wing., return it to Olaf to get a reward." }](https://nanobrowserquest.com/img/3/item-wing.png) | Wing | The remnants of a dragon's wing. Drops 1/150 from red snakes. |
| ![{"name": "Crystal", "description": "An ancient and powerful crystal., return it to Viktor to get a reward." }](https://nanobrowserquest.com/img/3/item-crystal.png) | Crystal | An ancient and powerful crystal. |
| ![{"name": "Skeleton King's Thoracic Cage", "description": "The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-skeletonkingcage.png) | Skeleton King's Thoracic Cage | The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter properties |
| ![{"name": "Necromancer's Heart", "description": "The heart of the Necromancer. An unknown magic is still being emitted from the remains. . Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-necromancerheart.png) | Necromancer's Heart | The heart of the Necromancer. An unknown magic is still being emitted from the remains. . Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter |
Expand Down

0 comments on commit dd6f7be

Please sign in to comment.