From 62e9eca0452c56f6efd00921db8ed6b6302be1df Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 22 Nov 2021 20:24:19 -0500 Subject: add @notenoughupdates/simplify-number --- src/commands/leveling/level.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/commands/leveling/level.ts') diff --git a/src/commands/leveling/level.ts b/src/commands/leveling/level.ts index eb86155..36fb153 100644 --- a/src/commands/leveling/level.ts +++ b/src/commands/leveling/level.ts @@ -8,15 +8,13 @@ import { type BushSlashMessage, type BushUser } from '#lib'; +import { SimplifyNumber } from '@notenoughupdates/simplify-number'; import canvas from 'canvas'; import { MessageAttachment } from 'discord.js'; import got from 'got'; import { dirname, join } from 'path'; import { fileURLToPath } from 'url'; -// idk why I need to do default twice, it is being weird -const { default: SimplifyNumber } = (await import('simplify-number')).default as unknown as typeof import('simplify-number'); - export default class LevelCommand extends BushCommand { public constructor() { super('level', { -- cgit