parent
13b915ab5a
commit
64b97ff9ba
|
@ -4,6 +4,8 @@
|
|||
import { parse } from 'yaml';
|
||||
import { promises as fs } from 'fs';
|
||||
import { Client } from './class';
|
||||
import * as eventFiles from './events';
|
||||
import * as commandFiles from './commands';
|
||||
|
||||
async function main(): Promise<void> {
|
||||
const read = await fs.readFile('../config.yaml', 'utf8');
|
||||
|
@ -13,8 +15,8 @@ async function main(): Promise<void> {
|
|||
await client.loadDatabase();
|
||||
client.loadPlugins();
|
||||
await client.loadIntervals();
|
||||
await client.loadEvents();
|
||||
await client.loadCommands();
|
||||
await client.loadEvents(eventFiles);
|
||||
await client.loadCommands(commandFiles);
|
||||
client.connect();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue