mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00:00
refactor: packet
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import {PacketMsgTextElement} from "@/core/helper/packet/msg/element";
|
||||
import {PacketMsgTextElement} from "@/core/packet/msg/element";
|
||||
import {SendTextElement} from "@/core";
|
||||
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import { RequestUtil } from '@/common/request';
|
||||
import fs from 'node:fs';
|
||||
import fsPromise from 'node:fs/promises';
|
||||
import { OB11FriendAddNoticeEvent } from '@/onebot/event/notice/OB11FriendAddNoticeEvent';
|
||||
import { decodeSysMessage } from '@/core/proto/old/ProfileLike';
|
||||
import { decodeSysMessage } from '@/core/packet/proto/old/ProfileLike';
|
||||
|
||||
type RawToOb11Converters = {
|
||||
[Key in keyof MessageElement as Key extends `${string}Element` ? Key : never]: (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { NapCatCore } from '@/core';
|
||||
import { decodeProfileLikeTip } from '@/core/proto/old/ProfileLike';
|
||||
import { decodeProfileLikeTip } from '@/core/packet/proto/old/ProfileLike';
|
||||
|
||||
import { NapCatOneBot11Adapter } from '@/onebot';
|
||||
import { OB11ProfileLikeEvent } from '../event/notice/OB11ProfileLikeEvent';
|
||||
|
||||
@@ -45,7 +45,7 @@ import { OB11GroupRecallNoticeEvent } from '@/onebot/event/notice/OB11GroupRecal
|
||||
import { LRUCache } from '@/common/lru-cache';
|
||||
import { NodeIKernelRecentContactListener } from '@/core/listeners/NodeIKernelRecentContactListener';
|
||||
import { Native } from '@/native';
|
||||
import { decodeMessage, decodeRecallGroup, Message, RecallGroup } from '@/core/proto/old/Message';
|
||||
import { decodeMessage, decodeRecallGroup, Message, RecallGroup } from '@/core/packet/proto/old/Message';
|
||||
import { OB11MessageDataType } from './types';
|
||||
|
||||
//OneBot实现类
|
||||
@@ -547,7 +547,7 @@ export class NapCatOneBot11Adapter {
|
||||
// this.core.apis.PacketApi.sendSetSpecialTittlePacket(message.peerUin, uid, '测试');
|
||||
// console.log('set', message.peerUin, uid);
|
||||
// }
|
||||
|
||||
|
||||
// });
|
||||
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user