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:
parent
d3dbb9f479
commit
fb5c29a827
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ import knex from "./knex";
|
||||||
// Run latest database migrations
|
// Run latest database migrations
|
||||||
logger.info("Running database migrations");
|
logger.info("Running database migrations");
|
||||||
knex.migrate.latest().then(() => {
|
knex.migrate.latest().then(() => {
|
||||||
const client = new Client(process.env.TOKEN);
|
const client = new Client(process.env.TOKEN, {
|
||||||
|
getAllUsers: true
|
||||||
|
});
|
||||||
client.setMaxListeners(100);
|
client.setMaxListeners(100);
|
||||||
|
|
||||||
const bot = new Knub(client, {
|
const bot = new Knub(client, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue