import { OneBotAction } from '@/onebot/action/OneBotAction'; import { ActionName } from '@/onebot/action/router'; import { z } from 'zod'; import { coerce } from '@/common/coerce'; const SchemaData = z.object({ model: coerce.string(), }); type Payload = z.infer; export class GoCQHTTPGetModelShow extends OneBotAction> { override actionName = ActionName.GoCQHTTP_GetModelShow; override payloadSchema = SchemaData; async _handle(payload: Payload) { if (!payload.model) { payload.model = 'napcat'; } return [{ variants: { model_show: 'napcat', need_pay: false } }]; } }