This commit is contained in:
手瓜一十雪 2024-08-12 00:22:11 +08:00
commit 7816271302
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import { ConfigBase } from "@/common/utils/ConfigBase";
import { LogLevel } from "@/common/utils/log";
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export interface NapCatConfig {
fileLog: boolean,
consoleLog: boolean,
@ -8,9 +9,9 @@ export interface NapCatConfig {
consoleLogLevel: LogLevel,
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class NapCatConfig extends ConfigBase<NapCatConfig> {
getConfigName() {
return 'onebot11';
return 'napcat';
}
}
}

View File

@ -1,5 +1,6 @@
import { ConfigBase } from '@/common/utils/ConfigBase';
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export interface OB11Config {
http: {
enable: boolean;
@ -33,6 +34,7 @@ export interface OB11Config {
};
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class OB11Config extends ConfigBase<OB11Config> {
getConfigName() {
return 'onebot11';