From 7e6b546f4dff1a729245dd57d3f3e2e23c7ca6a1 Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:56:49 +1100 Subject: [PATCH] Populate robochimp cache every 5 minutes --- src/lib/tickers.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/tickers.ts b/src/lib/tickers.ts index a2c8ba7951..a966de26bd 100644 --- a/src/lib/tickers.ts +++ b/src/lib/tickers.ts @@ -9,6 +9,7 @@ import { processPendingActivities } from './Task'; import { BitField, Channel, PeakTier, globalConfig } from './constants'; import { GrandExchange } from './grandExchange'; import { collectMetrics } from './metrics'; +import { populateRoboChimpCache } from './perkTier'; import { runCommand } from './settings/settings'; import { informationalButtons } from './sharedComponents'; import { getFarmingInfo } from './skilling/functions/getFarmingInfo'; @@ -374,6 +375,15 @@ WHERE bitfield && '{2,3,4,5,6,7,8,12,21,24}'::int[] AND user_stats."last_daily_t cb: async () => { await GrandExchange.tick(); } + }, + { + name: 'robochimp_cache', + startupWait: Time.Minute * 5, + timer: null, + interval: Time.Minute * 5, + cb: async () => { + await populateRoboChimpCache(); + } } ];