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