aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/cache/updateHighlightCache.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-11 18:44:09 +0200
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-11 18:44:09 +0200
commitd2a020837267bf024f508b402f596f8e242672ed (patch)
tree7e371015fa1451bda993e44aa591b3cc24c3209d /src/tasks/cache/updateHighlightCache.ts
parent7d1dede862339c439830a0306e2b7f3a273f967f (diff)
downloadtanzanite-d2a020837267bf024f508b402f596f8e242672ed.tar.gz
tanzanite-d2a020837267bf024f508b402f596f8e242672ed.tar.bz2
tanzanite-d2a020837267bf024f508b402f596f8e242672ed.zip
create task categories
Diffstat (limited to 'src/tasks/cache/updateHighlightCache.ts')
-rw-r--r--src/tasks/cache/updateHighlightCache.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tasks/cache/updateHighlightCache.ts b/src/tasks/cache/updateHighlightCache.ts
new file mode 100644
index 0000000..44ddd90
--- /dev/null
+++ b/src/tasks/cache/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 async exec() {
+ return this.client.highlightManager.syncCache();
+ }
+}