3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: load all guild members on start

This commit is contained in:
Dragory 2018-07-31 20:58:48 +03:00
parent d3dbb9f479
commit fb5c29a827

View file

@ -27,7 +27,9 @@ import knex from "./knex";
// Run latest database migrations
logger.info("Running database migrations");
knex.migrate.latest().then(() => {
const client = new Client(process.env.TOKEN);
const client = new Client(process.env.TOKEN, {
getAllUsers: true
});
client.setMaxListeners(100);
const bot = new Knub(client, {