aboutsummaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-04 17:07:38 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-04 17:07:38 -0400
commit1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4 (patch)
treeaa4ae8c7e2315d6ebd6500000a17d3a1c45b4c87 /src/tasks
parent153a40fbcd314459f94d9a2b44d3466c930c4e35 (diff)
downloadtanzanite-1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4.tar.gz
tanzanite-1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4.tar.bz2
tanzanite-1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4.zip
cleaned up lib imports
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/unban.ts3
-rw-r--r--src/tasks/unmute.ts4
-rw-r--r--src/tasks/updateCache.ts6
3 files changed, 4 insertions, 9 deletions
diff --git a/src/tasks/unban.ts b/src/tasks/unban.ts
index 861f71f..3d39b02 100644
--- a/src/tasks/unban.ts
+++ b/src/tasks/unban.ts
@@ -1,7 +1,6 @@
import { DiscordAPIError } from 'discord.js';
import { Op } from 'sequelize';
-import { BushTask } from '../lib/extensions/discord-akairo/BushTask';
-import { Ban } from '../lib/models';
+import { Ban, BushTask } from '../lib';
export default class UnbanTask extends BushTask {
public constructor() {
diff --git a/src/tasks/unmute.ts b/src/tasks/unmute.ts
index a259b17..379fca4 100644
--- a/src/tasks/unmute.ts
+++ b/src/tasks/unmute.ts
@@ -1,8 +1,6 @@
import { DiscordAPIError } from 'discord.js';
import { Op } from 'sequelize';
-import { BushTask } from '../lib/extensions/discord-akairo/BushTask';
-import { Guild } from '../lib/models';
-import { Mute } from '../lib/models/Mute';
+import { BushTask, Guild, Mute } from '../lib';
export default class UnmuteTask extends BushTask {
public constructor() {
diff --git a/src/tasks/updateCache.ts b/src/tasks/updateCache.ts
index 08e0f3c..5babb5e 100644
--- a/src/tasks/updateCache.ts
+++ b/src/tasks/updateCache.ts
@@ -1,9 +1,7 @@
-import { BushClient } from '../lib/extensions/discord-akairo/BushClient';
-import { BushTask } from '../lib/extensions/discord-akairo/BushTask';
-import { Global } from '../lib/models';
+import { BushClient, BushTask, Global } from '../lib';
import * as config from './../config/options';
-export default class UpdateCacheTask extends BushTask {
+export class UpdateCacheTask extends BushTask {
public constructor() {
super('updateCache', {
delay: 300_000, // 5 minutes