mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-26 10:41:20 +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.
24 lines
858 B
TypeScript
24 lines
858 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
||
import { ActionName, BaseCheckResult } from '@/napcat-onebot/action/router';
|
||
|
||
export abstract class GetPacketStatusDepends<PT, RT> extends OneBotAction<PT, RT> {
|
||
protected override async check (payload: PT): Promise<BaseCheckResult> {
|
||
if (!this.core.apis.PacketApi.packetStatus) {
|
||
return {
|
||
valid: false,
|
||
message: 'packetBackend不可用,请参照文档 https://napneko.github.io/config/advanced 和启动日志检查packetBackend状态或进行配置!' +
|
||
'错误堆栈信息:' + this.core.apis.PacketApi.clientLogStack,
|
||
};
|
||
}
|
||
return await super.check(payload);
|
||
}
|
||
}
|
||
|
||
export class GetPacketStatus extends GetPacketStatusDepends<void, void> {
|
||
override actionName = ActionName.GetPacketStatus;
|
||
|
||
async _handle () {
|
||
|
||
}
|
||
}
|