aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/updateHighlightCache.ts
blob: 4677ea741cc733bd14135d5f9e18963b18cfa402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Time } from '#constants';
import { BushTask } from '../lib/extensions/discord-akairo/BushTask.js';

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

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