This commit is contained in:
手瓜一十雪
2024-07-23 09:21:36 +08:00
3 changed files with 10 additions and 14 deletions

View File

@@ -13,6 +13,7 @@ export interface NapCatConfig {
}
class Config extends ConfigBase<NapCatConfig> implements NapCatConfig {
name: string = 'napcat'
fileLog = true;
consoleLog = true;
fileLogLevel = LogLevel.DEBUG;
@@ -21,10 +22,6 @@ class Config extends ConfigBase<NapCatConfig> implements NapCatConfig {
constructor() {
super();
}
getConfigPath(pathName: string) {
const filename = `napcat${pathName ? "_" : ""}${pathName}.json`
return path.join(this.getConfigDir(), filename);
}
}
export const napCatConfig = new Config();