From dd6f7bef023cd6d2e67e4d00c888df700fcf1d59 Mon Sep 17 00:00:00 2001 From: Tom Bertrand Date: Mon, 26 Feb 2024 09:31:36 -0500 Subject: [PATCH] add more timeout on CG stats --- server/cron/coingeckoStats.js | 10 +++++----- src/pages/NanoBrowserQuest/Guide/guide.md | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/server/cron/coingeckoStats.js b/server/cron/coingeckoStats.js index 7710fd13..5d5cc36a 100644 --- a/server/cron/coingeckoStats.js +++ b/server/cron/coingeckoStats.js @@ -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); @@ -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 @@ -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); } } @@ -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; diff --git a/src/pages/NanoBrowserQuest/Guide/guide.md b/src/pages/NanoBrowserQuest/Guide/guide.md index b9e6c4ca..6e3da9f7 100644 --- a/src/pages/NanoBrowserQuest/Guide/guide.md +++ b/src/pages/NanoBrowserQuest/Guide/guide.md @@ -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) | @@ -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 @@ -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 |