changes to client config

merge-requests/1/merge
Matthew 2020-04-14 19:02:28 -04:00
parent 708ec88947
commit e0695fe39c
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import { promises as fs } from 'fs';
import { Collection, Command, Util } from '.';
export default class Client extends eris.Client {
public config: { token: string, prefix: string };
public config: { token: string, prefix: string, guildID: string };
public commands: Collection<Command>;

View File

@ -4,8 +4,8 @@ import { Client } from './class';
async function main(): Promise<void> {
const read = await fs.readFile('../config.yaml', 'utf8');
const config: { token: string, prefix: string } = parse(read);
const client = new Client(config.token);
const config: { token: string, prefix: string, guildID: string } = parse(read);
const client = new Client(config.token, { defaultImageFormat: 'png' });
client.config = config;
client.loadPlugins();
await client.loadEvents();