1
0
Fork 0

Fix util reloading

refactor/models
Bsian 2019-12-01 00:25:47 +00:00
parent c11a7e62c3
commit d481d7c90c
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export default class Load extends Command {
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`);
else if (type === 'util') { else if (type === 'util') {
const Util = require(`${corepath}/class/Util`); const Util = require(`${corepath}/class/Util`).default;
this.client.util = new Util(this.client); this.client.util = new Util(this.client);
} else { } else {
try { try {