fixes
parent
8c32801592
commit
76e189cbc9
|
@ -8,8 +8,6 @@ import { Account, AccountInterface, Moderation, ModerationInterface, Domain, Dom
|
|||
import { emojis } from '../stores';
|
||||
import { Command, CSCLI, Util, Collection, Server, Event } from '.';
|
||||
|
||||
import * as handlerFiles from '../cscli';
|
||||
|
||||
|
||||
export default class Client extends Eris.Client {
|
||||
public config: { 'token': string; 'cloudflare': string; 'prefix': string; 'emailPass': string; 'mongoURL': string; 'port': number; 'keyPair': { 'publicKey': string; 'privateKey': string; }; vendorKey: string; internalKey: string; };
|
||||
|
@ -141,8 +139,6 @@ export default class Client extends Eris.Client {
|
|||
});
|
||||
this.server = new Server(this, { port: this.config.port });
|
||||
// eslint-disable-next-line no-new
|
||||
const cscli = new CSCLI(this);
|
||||
cscli.load(handlerFiles);
|
||||
|
||||
const corepath = '/opt/CloudServices/dist';
|
||||
const cmdFiles = await fs.readdir('/opt/CloudServices/dist/commands');
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { Client } from './class';
|
||||
import { Client, CSCLI } from './class';
|
||||
import * as eventFiles from './events';
|
||||
import * as commandFiles from './commands';
|
||||
import * as handlerFiles from './cscli';
|
||||
|
||||
// eslint-disable-next-line no-new
|
||||
async function main() {
|
||||
|
@ -9,6 +10,8 @@ async function main() {
|
|||
await client.loadEvents(eventFiles);
|
||||
await client.loadFunctions();
|
||||
await client.init();
|
||||
const cscli = new CSCLI(client);
|
||||
cscli.load(handlerFiles);
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
Loading…
Reference in New Issue