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,
|
"manifest_version": 4,
|
||||||
"type": "extension",
|
"type": "extension",
|
||||||
"name": "LLOneBot v3.27.1",
|
"name": "LLOneBot v3.27.2",
|
||||||
"slug": "LLOneBot",
|
"slug": "LLOneBot",
|
||||||
"description": "使你的NTQQ支持OneBot11协议进行QQ机器人开发",
|
"description": "使你的NTQQ支持OneBot11协议进行QQ机器人开发",
|
||||||
"version": "3.27.1",
|
"version": "3.27.2",
|
||||||
"icon": "./icon.jpg",
|
"icon": "./icon.jpg",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
@ -309,6 +309,7 @@ export class OB11Constructor {
|
|||||||
resMsg.raw_message = resMsg.raw_message.trim()
|
resMsg.raw_message = resMsg.raw_message.trim()
|
||||||
return resMsg
|
return resMsg
|
||||||
}
|
}
|
||||||
|
|
||||||
static async PrivateEvent(msg: RawMessage): Promise<OB11BaseNoticeEvent> {
|
static async PrivateEvent(msg: RawMessage): Promise<OB11BaseNoticeEvent> {
|
||||||
if (msg.chatType !== ChatType.friend) {
|
if (msg.chatType !== ChatType.friend) {
|
||||||
return;
|
return;
|
||||||
@ -331,11 +332,13 @@ export class OB11Constructor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 好友增加事件
|
||||||
if (msg.msgType === 5 && msg.subMsgType === 12) {
|
if (msg.msgType === 5 && msg.subMsgType === 12) {
|
||||||
const event = new OB11FriendAddNoticeEvent(parseInt(msg.peerUin))
|
const event = new OB11FriendAddNoticeEvent(parseInt(msg.peerUin))
|
||||||
return event
|
return event
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static async GroupEvent(msg: RawMessage): Promise<OB11GroupNoticeEvent> {
|
static async GroupEvent(msg: RawMessage): Promise<OB11GroupNoticeEvent> {
|
||||||
if (msg.chatType !== ChatType.group) {
|
if (msg.chatType !== ChatType.group) {
|
||||||
return
|
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(
|
static async RecallEvent(
|
||||||
msg: RawMessage,
|
msg: RawMessage,
|
||||||
): Promise<OB11FriendRecallNoticeEvent | OB11GroupRecallNoticeEvent | undefined> {
|
): 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