diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-01 15:40:31 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-01 15:40:31 -0400 |
commit | 13894f2beffc776a56ac03868613b4313dfb57bf (patch) | |
tree | 028c229b42c2a74a3c511386f594385d3ed77dd5 /src/tasks | |
parent | 914c4d3cb7f02a0c74b677e67a47fb66a65fb724 (diff) | |
download | tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.tar.gz tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.tar.bz2 tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.zip |
convert to esm
Diffstat (limited to 'src/tasks')
-rw-r--r-- | src/tasks/cpuUsage.ts | 4 | ||||
-rw-r--r-- | src/tasks/removeExpiredPunishements.ts | 4 | ||||
-rw-r--r-- | src/tasks/updateCache.ts | 6 | ||||
-rw-r--r-- | src/tasks/updateStats.ts | 4 | ||||
-rw-r--r-- | src/tasks/updateSuperUsers.ts | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/tasks/cpuUsage.ts b/src/tasks/cpuUsage.ts index b22923a..e597b31 100644 --- a/src/tasks/cpuUsage.ts +++ b/src/tasks/cpuUsage.ts @@ -1,5 +1,5 @@ -import { BushTask } from '@lib'; -import * as osu from 'node-os-utils'; +import { BushTask } from '#lib'; +import osu from 'node-os-utils'; export default class CpuUsageTask extends BushTask { public constructor() { diff --git a/src/tasks/removeExpiredPunishements.ts b/src/tasks/removeExpiredPunishements.ts index dee6a89..6662292 100644 --- a/src/tasks/removeExpiredPunishements.ts +++ b/src/tasks/removeExpiredPunishements.ts @@ -1,5 +1,5 @@ -import { ActivePunishment, ActivePunishmentType, BushTask, type BushGuild, type BushUser } from '@lib'; -import { Op } from 'sequelize'; +import { ActivePunishment, ActivePunishmentType, BushTask, type BushGuild, type BushUser } from '#lib'; +const { Op } = (await import('sequelize')).default; export default class RemoveExpiredPunishmentsTask extends BushTask { public constructor() { diff --git a/src/tasks/updateCache.ts b/src/tasks/updateCache.ts index 6ccf609..16683f0 100644 --- a/src/tasks/updateCache.ts +++ b/src/tasks/updateCache.ts @@ -1,6 +1,6 @@ -import { Global, Guild, type BushClient } from '@lib'; -import { BushTask } from '../lib/extensions/discord-akairo/BushTask'; -import config from './../config/options'; +import { Global, Guild, type BushClient } from '#lib'; +import { BushTask } from '../lib/extensions/discord-akairo/BushTask.js'; +import config from './../config/options.js'; export default class UpdateCacheTask extends BushTask { public constructor() { diff --git a/src/tasks/updateStats.ts b/src/tasks/updateStats.ts index ad3cb45..d6cabaa 100644 --- a/src/tasks/updateStats.ts +++ b/src/tasks/updateStats.ts @@ -1,5 +1,5 @@ -import { Stat } from '@lib'; -import { BushTask } from '../lib/extensions/discord-akairo/BushTask'; +import { Stat } from '#lib'; +import { BushTask } from '../lib/extensions/discord-akairo/BushTask.js'; export default class UpdateStatsTask extends BushTask { public constructor() { diff --git a/src/tasks/updateSuperUsers.ts b/src/tasks/updateSuperUsers.ts index 72ae7ab..ffbf550 100644 --- a/src/tasks/updateSuperUsers.ts +++ b/src/tasks/updateSuperUsers.ts @@ -1,5 +1,5 @@ -import { BushTask } from '../lib/extensions/discord-akairo/BushTask'; -import { Global } from '../lib/models/Global'; +import { BushTask } from '../lib/extensions/discord-akairo/BushTask.js'; +import { Global } from '../lib/models/Global.js'; export default class UpdateSuperUsersTask extends BushTask { public constructor() { |