mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
chore: completely comment onRecvSysMsg
This commit is contained in:
parent
c3eaae9d88
commit
41a8dc840f
@ -238,33 +238,35 @@ export class NapCatOneBot11Adapter {
|
|||||||
private initMsgListener() {
|
private initMsgListener() {
|
||||||
const msgListener = new NodeIKernelMsgListener();
|
const msgListener = new NodeIKernelMsgListener();
|
||||||
|
|
||||||
|
/*
|
||||||
msgListener.onRecvSysMsg = async () => {
|
msgListener.onRecvSysMsg = async () => {
|
||||||
// const sysMsg = SysMessage.fromBinary(Uint8Array.from(msg));
|
const sysMsg = SysMessage.fromBinary(Uint8Array.from(msg));
|
||||||
// if (sysMsg.msgSpec.length === 0) {
|
if (sysMsg.msgSpec.length === 0) {
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// const { msgType, subType, subSubType } = sysMsg.msgSpec[0];
|
const { msgType, subType, subSubType } = sysMsg.msgSpec[0];
|
||||||
// if (msgType === 732 && subType === 16 && subSubType === 16) {
|
if (msgType === 732 && subType === 16 && subSubType === 16) {
|
||||||
// const greyTip = GreyTipWrapper.fromBinary(Uint8Array.from(sysMsg.bodyWrapper!.wrappedBody.slice(7)));
|
const greyTip = GreyTipWrapper.fromBinary(Uint8Array.from(sysMsg.bodyWrapper!.wrappedBody.slice(7)));
|
||||||
// if (greyTip.subTypeId === 36) {
|
if (greyTip.subTypeId === 36) {
|
||||||
// const emojiLikeToOthers = EmojiLikeToOthersWrapper1
|
const emojiLikeToOthers = EmojiLikeToOthersWrapper1
|
||||||
// .fromBinary(greyTip.rest)
|
.fromBinary(greyTip.rest)
|
||||||
// .wrapper!
|
.wrapper!
|
||||||
// .body!;
|
.body!;
|
||||||
// if (emojiLikeToOthers.attributes?.operation !== 1) { // Un-like
|
if (emojiLikeToOthers.attributes?.operation !== 1) { // Un-like
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// const eventOrEmpty = await this.apis.GroupApi.createGroupEmojiLikeEvent(
|
const eventOrEmpty = await this.apis.GroupApi.createGroupEmojiLikeEvent(
|
||||||
// greyTip.groupCode.toString(),
|
greyTip.groupCode.toString(),
|
||||||
// await this.core.apis.UserApi.getUinByUidV2(emojiLikeToOthers.attributes!.senderUid),
|
await this.core.apis.UserApi.getUinByUidV2(emojiLikeToOthers.attributes!.senderUid),
|
||||||
// emojiLikeToOthers.msgSpec!.msgSeq.toString(),
|
emojiLikeToOthers.msgSpec!.msgSeq.toString(),
|
||||||
// emojiLikeToOthers.attributes!.emojiId,
|
emojiLikeToOthers.attributes!.emojiId,
|
||||||
// );
|
);
|
||||||
// // eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||||
// eventOrEmpty && await this.networkManager.emitEvent(eventOrEmpty);
|
eventOrEmpty && await this.networkManager.emitEvent(eventOrEmpty);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
msgListener.onInputStatusPush = async data => {
|
msgListener.onInputStatusPush = async data => {
|
||||||
const uin = await this.core.apis.UserApi.getUinByUidV2(data.fromUin);
|
const uin = await this.core.apis.UserApi.getUinByUidV2(data.fromUin);
|
||||||
|
Loading…
Reference in New Issue
Block a user