mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-31 14:59:05 +08:00
* feat: pnpm new * Refactor build and release workflows, update dependencies Switch build scripts and workflows from npm to pnpm, update build and artifact paths, and simplify release workflow by removing version detection and changelog steps. Add new dependencies (silk-wasm, express, ws, node-pty-prebuilt-multiarch), update exports in package.json files, and add vite config for napcat-framework. Also, rename manifest.json for framework package and fix static asset copying in shell build config.
19 lines
566 B
TypeScript
19 lines
566 B
TypeScript
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { GetPacketStatusDepends } from '@/napcat-onebot/action/packet/GetPacketStatus';
|
|
|
|
export class GetRkeyEx extends GetPacketStatusDepends<void, unknown> {
|
|
override actionName = ActionName.GetRkeyEx;
|
|
|
|
async _handle () {
|
|
const rkeys = await this.core.apis.PacketApi.pkt.operation.FetchRkey();
|
|
return rkeys.map(rkey => {
|
|
return {
|
|
type: rkey.type === 10 ? 'private' : 'group',
|
|
rkey: rkey.rkey,
|
|
created_at: rkey.time,
|
|
ttl: rkey.ttl,
|
|
};
|
|
});
|
|
}
|
|
}
|