mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
Merge remote-tracking branch 'upstream/main'
This commit is contained in:
commit
92c4889924
@ -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": [
|
||||
{
|
||||
|
@ -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> {
|
||||
|
@ -1 +1 @@
|
||||
export const version = '3.27.1'
|
||||
export const version = '3.27.2'
|
||||
|
Loading…
x
Reference in New Issue
Block a user