3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 00:05:04 +00:00

Add error handler for Eris errors

Previously this was done within Knub, but Knub no longer
automatically places an error handler for Eris since v30.0.0-beta.24
This commit is contained in:
Dragory 2020-10-13 19:49:31 +03:00
parent b4bed82a30
commit 1889027bd9

View file

@ -147,6 +147,10 @@ connect().then(async () => {
}
});
client.on("error", err => {
logger.error(`[ERIS] ${String(err)}`);
});
const allowedGuilds = new AllowedGuilds();
const guildConfigs = new Configs();