* 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
424 B
TypeScript
19 lines
424 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
interface ReturnType {
|
|
yes: boolean;
|
|
}
|
|
|
|
export class CanSend extends OneBotAction<void, ReturnType> {
|
|
async _handle (): Promise<ReturnType> {
|
|
return {
|
|
yes: true,
|
|
};
|
|
}
|
|
}
|
|
|
|
export default class CanSendRecord extends CanSend {
|
|
override actionName = ActionName.CanSendRecord;
|
|
}
|