Skip to content

Commit

Permalink
fix: self_id === input 不打印日志
Browse files Browse the repository at this point in the history
  • Loading branch information
CakmLexi committed Jun 30, 2024
1 parent b066ad7 commit f1d5fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapter/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class AdapterInput implements KarinAdapter {
text.push(`[未知消息类型:${JSON.stringify(v)}]`)
}
}
this.logger('info', text.join(''))
this.logger('info', `${logger.green('Send private input: ')}${text.join('')}`)
return { message_id: 'input' }
}

Expand Down
2 changes: 1 addition & 1 deletion src/event/event.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default class EventHandler {
if (this.e.isGroup) {
review.GroupMsgPrint(this.e) && logger.bot('info', this.e.self_id, `${logger.green(`Send Group ${this.e.group_id}: `)}${ReplyLog}`)
} else {
this.e.self_id === 'input' && logger.bot('info', this.e.self_id, `${logger.green(`Send private ${this.e.user_id}: `)}${ReplyLog}`)
this.e.self_id !== 'input' && logger.bot('info', this.e.self_id, `${logger.green(`Send private ${this.e.user_id}: `)}${ReplyLog}`)
}

let message_id = ''
Expand Down

0 comments on commit f1d5fbd

Please sign in to comment.