fix[default-config]config name check

This commit is contained in:
汉广
2024-07-22 20:12:24 +08:00
parent 769acae518
commit 40ab6759d7
3 changed files with 10 additions and 14 deletions

View File

@@ -42,6 +42,7 @@ export interface OB11Config {
}
class Config extends ConfigBase<OB11Config> implements OB11Config {
name: string = 'onebot11'
http = {
enable: false,
host: '',
@@ -72,11 +73,6 @@ class Config extends ConfigBase<OB11Config> implements OB11Config {
RecordList: [] as Array<string>
};
getConfigPath(pathName: string) {
const filename = `onebot11_${pathName ? "_" : ""}${pathName}.json`
return path.join(this.getConfigDir(), filename);
}
protected getKeys(): string[] | null {
return null;
}