cloudservices/src/main.ts

18 lines
468 B
TypeScript
Raw Normal View History

2020-12-18 19:26:28 -05:00
import { Client, CSCLI } from './class';
2020-06-29 17:13:54 -04:00
import * as eventFiles from './events';
import * as commandFiles from './commands';
2020-12-18 19:26:28 -05:00
import * as handlerFiles from './cscli';
2020-06-29 02:36:28 -04:00
// eslint-disable-next-line no-new
2020-06-29 17:13:54 -04:00
async function main() {
const client = new Client();
await client.loadCommands(commandFiles);
await client.loadEvents(eventFiles);
await client.loadFunctions();
await client.init();
2020-12-18 19:26:28 -05:00
const cscli = new CSCLI(client);
cscli.load(handlerFiles);
2020-06-29 17:13:54 -04:00
}
main();