fix: WaitForMessageHelper 用不了

This commit is contained in:
Clansty 2022-02-24 21:23:35 +08:00
parent a8b87a49dd
commit 5275f8830d
No known key found for this signature in database
GPG Key ID: 05F8479BA63A8E92
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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');