From 13894f2beffc776a56ac03868613b4313dfb57bf Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 1 Nov 2021 15:40:31 -0400 Subject: convert to esm --- src/listeners/other/consoleListener.ts | 4 ++-- src/listeners/other/exit.ts | 2 +- src/listeners/other/promiseRejection.ts | 4 ++-- src/listeners/other/uncaughtException.ts | 4 ++-- src/listeners/other/warning.ts | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/listeners/other') diff --git a/src/listeners/other/consoleListener.ts b/src/listeners/other/consoleListener.ts index fab9119..fca8255 100644 --- a/src/listeners/other/consoleListener.ts +++ b/src/listeners/other/consoleListener.ts @@ -1,4 +1,4 @@ -import { BushListener } from '@lib'; +import { BushListener } from '#lib'; import { exec } from 'child_process'; import { promisify } from 'util'; @@ -16,7 +16,7 @@ export default class ConsoleListener extends BushListener { const sh = promisify(exec), bot = client, config = client.config, - { ActivePunishment, Global, Guild, Level, ModLog, StickyRole } = await import('@lib'), + { ActivePunishment, Global, Guild, Level, ModLog, StickyRole } = await import('#lib'), { ButtonInteraction, Collector, diff --git a/src/listeners/other/exit.ts b/src/listeners/other/exit.ts index 4ea6068..26ed36f 100644 --- a/src/listeners/other/exit.ts +++ b/src/listeners/other/exit.ts @@ -1,4 +1,4 @@ -import { BushListener } from '@lib'; +import { BushListener } from '#lib'; export default class ExitListener extends BushListener { public constructor() { diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index ad16773..f7ca840 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -1,6 +1,6 @@ -import { BushListener } from '@lib'; +import { BushListener } from '#lib'; import { Severity } from '@sentry/node'; -import CommandErrorListener from '../commands/commandError'; +import CommandErrorListener from '../commands/commandError.js'; export default class PromiseRejectionListener extends BushListener { public constructor() { diff --git a/src/listeners/other/uncaughtException.ts b/src/listeners/other/uncaughtException.ts index 0f8c17c..096c1f0 100644 --- a/src/listeners/other/uncaughtException.ts +++ b/src/listeners/other/uncaughtException.ts @@ -1,6 +1,6 @@ -import { BushListener } from '@lib'; +import { BushListener } from '#lib'; import { Severity } from '@sentry/node'; -import CommandErrorListener from '../commands/commandError'; +import CommandErrorListener from '../commands/commandError.js'; export default class UncaughtExceptionListener extends BushListener { public constructor() { diff --git a/src/listeners/other/warning.ts b/src/listeners/other/warning.ts index bf1488f..4dd79fe 100644 --- a/src/listeners/other/warning.ts +++ b/src/listeners/other/warning.ts @@ -1,6 +1,6 @@ -import { BushListener } from '@lib'; +import { BushListener } from '#lib'; import { Severity } from '@sentry/node'; -import CommandErrorListener from '../commands/commandError'; +import CommandErrorListener from '../commands/commandError.js'; export default class WarningListener extends BushListener { public constructor() { -- cgit