From d481d7c90cd64a5fe20c72abe33b2fd32e0e9279 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 1 Dec 2019 00:25:47 +0000 Subject: [PATCH] Fix util reloading --- src/commands/load.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/load.ts b/src/commands/load.ts index 57b00df..4582e47 100644 --- a/src/commands/load.ts +++ b/src/commands/load.ts @@ -22,7 +22,7 @@ export default class Load extends Command { const corepath = '/var/CloudServices/dist'; if (type === 'config') this.client.config = require(`${corepath}/config.json`); else if (type === 'util') { - const Util = require(`${corepath}/class/Util`); + const Util = require(`${corepath}/class/Util`).default; this.client.util = new Util(this.client); } else { try {