aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/updateHighlightCache.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks/updateHighlightCache.ts')
-rw-r--r--src/tasks/updateHighlightCache.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tasks/updateHighlightCache.ts b/src/tasks/updateHighlightCache.ts
new file mode 100644
index 0000000..22289ce
--- /dev/null
+++ b/src/tasks/updateHighlightCache.ts
@@ -0,0 +1,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 override async exec() {
+ return client.highlightManager.syncCache();
+ }
+}