blob: 8b42ad3acb7c4490681e3e49e060879c04676272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { BotTask, Time, updateEveryCache } from '#lib';
export default class UpdateCacheTask extends BotTask {
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.`);
}
}
|