blob: 190e2a4f20a73578d00305c733f5d9c40cad7e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { BushTask, Time, updateEveryCache } from '#lib';
export default class UpdateCacheTask extends BushTask {
public constructor() {
super('updateCache', {
delay: 5 * Time.Minute,
runOnStart: false // done in preinit task
});
}
public async exec() {
await updateEveryCache(this.client);
void this.client.logger.verbose(`UpdateCache`, `Updated cache.`);
}
}
|