enable rest mode

merge-requests/9/merge
Matthew 2020-04-16 10:11:54 -04:00
parent 1e5bcc56c0
commit 3b12b26026
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import { Client } from './class';
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');
const config: { token: string, prefix: string, guildID: string, mongoDB: string } = parse(read); const config: { token: string, prefix: string, guildID: string, mongoDB: string } = parse(read);
const client = new Client(config.token, { defaultImageFormat: 'png' }); const client = new Client(config.token, { defaultImageFormat: 'png', restMode: true });
client.config = config; client.config = config;
await client.loadDatabase(); await client.loadDatabase();
client.loadPlugins(); client.loadPlugins();