mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 03:56:54 -06:00
Add connected number and instance name to connected log
This commit is contained in:
parent
8bfc62a3b2
commit
380d6a43a5
@ -1233,10 +1233,14 @@ export class WAStartupService {
|
|||||||
this.logger.verbose('Connection opened');
|
this.logger.verbose('Connection opened');
|
||||||
this.instance.wuid = this.client.user.id.replace(/:\d+/, '');
|
this.instance.wuid = this.client.user.id.replace(/:\d+/, '');
|
||||||
this.instance.profilePictureUrl = (await this.profilePicture(this.instance.wuid)).profilePictureUrl;
|
this.instance.profilePictureUrl = (await this.profilePicture(this.instance.wuid)).profilePictureUrl;
|
||||||
|
const formattedWuid = this.instance.wuid.split('@')[0].padEnd(30, ' ');
|
||||||
|
const formattedName = this.instance.name.split('@')[0].padEnd(30, ' ');
|
||||||
this.logger.info(
|
this.logger.info(
|
||||||
`
|
`
|
||||||
┌──────────────────────────────┐
|
┌──────────────────────────────┐
|
||||||
│ CONNECTED TO WHATSAPP │
|
│ CONNECTED TO WHATSAPP │
|
||||||
|
│${formattedWuid}│
|
||||||
|
│${formattedName}│
|
||||||
└──────────────────────────────┘`.replace(/^ +/gm, ' '),
|
└──────────────────────────────┘`.replace(/^ +/gm, ' '),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user