From e0695fe39cf8aa482073df4c10f5f9e0872cc93f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 14 Apr 2020 19:02:28 -0400 Subject: [PATCH] changes to client config --- src/class/Client.ts | 2 +- src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/class/Client.ts b/src/class/Client.ts index edcd30f..07228ea 100644 --- a/src/class/Client.ts +++ b/src/class/Client.ts @@ -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; diff --git a/src/main.ts b/src/main.ts index b0899ff..28aa51e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,8 +4,8 @@ import { Client } from './class'; async function main(): Promise { 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();