From 0fcff7207fc7e9fb882003c030176e5c0aaf08c4 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Fri, 4 Oct 2024 21:57:45 +0900 Subject: [PATCH] fix: log --- src/Client.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index f7bb5eb..0f43e1a 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -60,11 +60,12 @@ export default class MuffinBot extends SapphireClient { public override async login(): Promise { if (container.channel === 'RELEASE') await container.chatBot.train(this) - else + else { container.logger.info( - '[MuffinBot] 해당 채널은 RELEASE 채널이 아니라서 학습 기능이 꺼졌습니다.\n' + - `현재 채널: ${container.channel}`, + '[MuffinBot] 해당 채널은 RELEASE 채널이 아니라서 학습 기능이 꺼졌습니다.', ) + container.logger.info(`[MuffinBot] 현재 채널: ${container.channel}`) + } return super.login(config.bot.token) } }