From 5275f8830d5cdbf8706acf4bc331f897051f5259 Mon Sep 17 00:00:00 2001 From: Clansty Date: Thu, 24 Feb 2022 21:23:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20WaitForMessageHelper=20=E7=94=A8?= =?UTF-8?q?=E4=B8=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helpers/WaitForMessageHelper.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/WaitForMessageHelper.ts b/src/helpers/WaitForMessageHelper.ts index 5693d52..0811666 100644 --- a/src/helpers/WaitForMessageHelper.ts +++ b/src/helpers/WaitForMessageHelper.ts @@ -8,7 +8,7 @@ export default class WaitForMessageHelper { constructor(private tg: Telegram) { tg.addNewMessageEventHandler(async e => { - if (!e.chat || e.chat.id) return false; + if (!e.chat || !e.chat.id) return false; const handler = this.map.get(Number(e.chat.id)); if (handler) { this.map.delete(Number(e.chat.id)); diff --git a/src/index.ts b/src/index.ts index ddf357a..9050de7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ import ForwardController from './controllers/ForwardController'; console: { type: 'console' }, }, categories: { - default: { level: 'trace', appenders: ['console'] }, + default: { level: 'debug', appenders: ['console'] }, }, }); const log = getLogger('Main');