construct FriendAddEvent

This commit is contained in:
Fripine 2024-04-24 17:38:35 +08:00 committed by GitHub
parent 32213be7a7
commit 4ff5553804
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,6 +154,11 @@ export class NapCatOnebot11 {
postOB11Event(groupEvent);
}
}).catch(e => log('constructGroupEvent error: ', e));
OB11Constructor.FriendAddEvent(message).then(friendAddEvent=>{
if(friendAddEvent){
postOB11Event(friendAddEvent)
}
}).catch(e => log('constructFriendAddEvent error: ', e));
}
}