Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Alen 2024-07-16 23:19:32 +08:00
commit 92c4889924
3 changed files with 6 additions and 14 deletions

View File

@ -1,10 +1,10 @@
{
"manifest_version": 4,
"type": "extension",
"name": "LLOneBot v3.27.1",
"name": "LLOneBot v3.27.2",
"slug": "LLOneBot",
"description": "使你的NTQQ支持OneBot11协议进行QQ机器人开发",
"version": "3.27.1",
"version": "3.27.2",
"icon": "./icon.jpg",
"authors": [
{

View File

@ -309,6 +309,7 @@ export class OB11Constructor {
resMsg.raw_message = resMsg.raw_message.trim()
return resMsg
}
static async PrivateEvent(msg: RawMessage): Promise<OB11BaseNoticeEvent> {
if (msg.chatType !== ChatType.friend) {
return;
@ -331,11 +332,13 @@ export class OB11Constructor {
}
}
}
// 好友增加事件
if (msg.msgType === 5 && msg.subMsgType === 12) {
const event = new OB11FriendAddNoticeEvent(parseInt(msg.peerUin))
return event
}
}
static async GroupEvent(msg: RawMessage): Promise<OB11GroupNoticeEvent> {
if (msg.chatType !== ChatType.group) {
return
@ -542,17 +545,6 @@ export class OB11Constructor {
}
}
// static async FriendAddEvent(msg: RawMessage): Promise<OB11FriendAddNoticeEvent | undefined> {
// if (msg.chatType !== ChatType.friend) {
// return
// }
// if (msg.msgType === 5 && msg.subMsgType === 12) {
// const event = new OB11FriendAddNoticeEvent(parseInt(msg.peerUin))
// return event
// }
// return
// }
static async RecallEvent(
msg: RawMessage,
): Promise<OB11FriendRecallNoticeEvent | OB11GroupRecallNoticeEvent | undefined> {

View File

@ -1 +1 @@
export const version = '3.27.1'
export const version = '3.27.2'