Skip to content

Commit

Permalink
feat(line): bot info
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX committed Jul 16, 2023
1 parent 6fd207d commit cca4dad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adapters/line/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ export class LineBot extends Bot<LineBot.Config> {
}

async initialize(callback: (bot: this) => Promise<void>) {
const { userId } = await this.internal.getBotInfo()
const { userId, pictureUrl, displayName } = await this.internal.getBotInfo()
this.selfId = userId
this.username = displayName
if (pictureUrl) this.avatar = pictureUrl
await callback(this)
this.online()
}
Expand Down

0 comments on commit cca4dad

Please sign in to comment.