enable rest mode
parent
1e5bcc56c0
commit
3b12b26026
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue