aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/cache/updateHighlightCache.ts
blob: 90139a6d5e97f8bd5405cd37331a11fa475f100f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { BotTask, Time } from '#lib';

export default class UpdateHighlightCacheTask extends BotTask {
	public constructor() {
		super('updateHighlightCache', {
			delay: 5 * Time.Minute,
			runOnStart: false
		});
	}

	public async exec() {
		return this.client.highlightManager.syncCache();
	}
}