Skip to content

Commit

Permalink
Populate robochimp cache every 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Dec 3, 2024
1 parent 3cad6c3 commit 7e6b546
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/tickers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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();
}
}
];

Expand Down

0 comments on commit 7e6b546

Please sign in to comment.