style: changed console to logger

This commit is contained in:
Slincnik 2024-12-14 14:45:47 +03:00
parent 11c1c5640e
commit 136d52a268
No known key found for this signature in database

View file

@ -28,7 +28,7 @@ client.init();
client client
.on("disconnect", () => logger.warn("Bot disconnected.")) .on("disconnect", () => logger.warn("Bot disconnected."))
.on("reconnecting", () => logger.warn("Bot reconnecting...")) .on("reconnecting", () => logger.warn("Bot reconnecting..."))
.on("warn", console.log) .on("warn", logger.log)
.on("error", console.log); .on("error", logger.log);
process.on("unhandledRejection", console.log).on("uncaughtException", console.log); process.on("unhandledRejection", logger.log).on("uncaughtException", logger.log);