From 98c3b22f66aa129637c804f46e26a12230900b71 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 1 Dec 2019 00:44:36 +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 afd977f..df8c4ef 100644 --- a/src/commands/load.ts +++ b/src/commands/load.ts @@ -20,7 +20,7 @@ export default class Load extends Command { if (!allowed.includes(type)) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid type to (re)load***`); const corepath = '/var/CloudServices/dist'; - if (type === 'config') this.client.config = require(`${corepath}/config.json`); + if (type === 'config') this.client.config = require(`${corepath}/config.json`).default; else if (type === 'util') { const Util = require(`${corepath}/class/Util`); this.client.util = new Util(this.client);