aboutsummaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
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