mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
commit
f6da7da90b
@ -140,15 +140,25 @@ export class OneBotGroupApi {
|
|||||||
}
|
}
|
||||||
if (element.grayTipElement.jsonGrayTipElement.busiId == 2407) {
|
if (element.grayTipElement.jsonGrayTipElement.busiId == 2407) {
|
||||||
//下面得改 上面也是错的grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE
|
//下面得改 上面也是错的grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE
|
||||||
const memberUin = json.items[1].param[0];
|
const type = json.items[json.items.length - 1]?.txt;
|
||||||
const title = json.items[3].txt;
|
switch (type) {
|
||||||
logger.logDebug('收到群成员新头衔消息', json);
|
case "头衔": {
|
||||||
return new OB11GroupTitleEvent(
|
const memberUin = json.items[1].param[0];
|
||||||
this.core,
|
const title = json.items[3].txt;
|
||||||
parseInt(msg.peerUid),
|
logger.logDebug('收到群成员新头衔消息', json);
|
||||||
parseInt(memberUin),
|
return new OB11GroupTitleEvent(
|
||||||
title,
|
this.core,
|
||||||
);
|
parseInt(msg.peerUid),
|
||||||
|
parseInt(memberUin),
|
||||||
|
title,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
case "移出":
|
||||||
|
logger.logDebug('收到机器人被踢消息', json);
|
||||||
|
return;
|
||||||
|
default:
|
||||||
|
logger.logWarn('收到未知的灰条消息', json);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user