From 9923f0751396decaa6febcaa54da9b6ad9b596b1 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 10 Nov 2021 22:12:23 -0500 Subject: fixed lots of shit I think --- src/lib/extensions/discord-akairo/BushClient.ts | 4 ++-- src/lib/extensions/discord-akairo/BushClientUtil.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/extensions/discord-akairo') diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index c2d8970..39eff3b 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -30,7 +30,7 @@ import { } from 'discord.js'; //@ts-ignore: no typings import eventsIntercept from 'events-intercept'; -import path, { dirname } from 'path'; +import path from 'path'; import readline from 'readline'; import type { Sequelize as SequelizeType } from 'sequelize'; import { fileURLToPath } from 'url'; @@ -114,7 +114,7 @@ const rl = readline.createInterface({ type If = T extends true ? A : T extends false ? B : A | B; -const __dirname = dirname(fileURLToPath(import.meta.url)); +const __dirname = path.dirname(fileURLToPath(import.meta.url)); export class BushClient extends AkairoClient { public declare channels: BushChannelManager; diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 594c9af..f619b4b 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -36,12 +36,12 @@ import { type UserResolvable } from 'discord.js'; import got from 'got'; -import humanizeDuration from 'humanize-duration'; import _ from 'lodash'; import moment from 'moment'; import { inspect, promisify } from 'util'; import CommandErrorListener from '../../../listeners/commands/commandError.js'; import { Format } from '../../common/Format.js'; +const { default: humanizeDuration } = await import ('humanize-duration') export class BushClientUtil extends ClientUtil { /** -- cgit