This commit is contained in:
手瓜一十雪
2025-04-17 09:54:12 +08:00
parent 54e6d5c3f2
commit 41dccd98a9
88 changed files with 363 additions and 363 deletions

View File

@@ -1,16 +1,16 @@
import { ConfigBase } from '@/common/config-base';
import { NapCatCore } from '@/core';
import { actionType } from '@/common/coerce';
import { coerce } from '@/common/coerce';
import { z } from 'zod';
export const NapcatConfigSchema = z.object({
fileLog: actionType.boolean().default(false),
consoleLog: actionType.boolean().default(true),
fileLogLevel: actionType.string().default('debug'),
consoleLogLevel: actionType.string().default('info'),
packetBackend: actionType.string().default('auto'),
packetServer: actionType.string().default(''),
o3HookMode: actionType.number().default(0),
fileLog: coerce.boolean().default(false),
consoleLog: coerce.boolean().default(true),
fileLogLevel: coerce.string().default('debug'),
consoleLogLevel: coerce.string().default('info'),
packetBackend: coerce.string().default('auto'),
packetServer: coerce.string().default(''),
o3HookMode: coerce.number().default(0),
});
export type NapcatConfig = z.infer<typeof NapcatConfigSchema>;