diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-21 00:18:08 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-21 00:18:08 -0400 |
commit | 6bdeb62f39060c3b3a6a63dc375d172f5568af6a (patch) | |
tree | e296d097347d25842babbb6db343cb5d0118cf03 /src/lib/extensions/discord-akairo/BushClient.ts | |
parent | 166d7fdf24440db71311c2cda95697c06e7b8b36 (diff) | |
download | tanzanite-6bdeb62f39060c3b3a6a63dc375d172f5568af6a.tar.gz tanzanite-6bdeb62f39060c3b3a6a63dc375d172f5568af6a.tar.bz2 tanzanite-6bdeb62f39060c3b3a6a63dc375d172f5568af6a.zip |
remove JSON5
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClient.ts')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index a053f00..6133dba 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -17,8 +17,6 @@ import { } from 'discord.js'; //@ts-ignore: no typings import eventsIntercept from 'events-intercept'; -import JSON5 from 'json5'; -import 'json5/lib/register'; import path from 'path'; import readline from 'readline'; import { Sequelize } from 'sequelize'; @@ -111,9 +109,7 @@ const rl = readline.createInterface({ type If<T extends boolean, A, B = null> = T extends true ? A : T extends false ? B : A | B; export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Ready> { - public static preStart(): void { - global.JSON5 = JSON5; - + public static init(): void { Structures.extend('GuildEmoji', () => BushGuildEmoji); Structures.extend('DMChannel', () => BushDMChannel); Structures.extend('TextChannel', () => BushTextChannel); @@ -143,14 +139,7 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re public declare users: BushUserManager; public customReady = false; - public stats: { - cpu: number | undefined; - commandsUsed: bigint; - } = { - cpu: undefined, - commandsUsed: 0n - }; - + public stats: { cpu: number | undefined; commandsUsed: bigint } = { cpu: undefined, commandsUsed: 0n }; public config: Config; public listenerHandler: BushListenerHandler; public inhibitorHandler: BushInhibitorHandler; |