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 dbcd5e7de2
commit 0c73587b25
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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();