Fix util reloading

merge-requests/1/merge
Bsian 2019-12-01 00:44:36 +00:00
parent 1473aaec11
commit 98c3b22f66
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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***`); if (!allowed.includes(type)) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid type to (re)load***`);
const corepath = '/var/CloudServices/dist'; 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') { else if (type === 'util') {
const Util = require(`${corepath}/class/Util`); const Util = require(`${corepath}/class/Util`);
this.client.util = new Util(this.client); this.client.util = new Util(this.client);