cloudservices/src/main.ts

15 lines
357 B
TypeScript
Raw Normal View History

2020-06-29 02:36:28 -04:00
import { Client } from './class';
2020-06-29 17:13:54 -04:00
import * as eventFiles from './events';
import * as commandFiles from './commands';
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();
}
main();