Merge pull request #138 from serfend/main

feat[config]support use default-template
This commit is contained in:
手瓜一十雪 authored and GitHub committed 2024-07-22 18:22:49 +08:00
commit e9c00c72b1
3 files changed
+23 -12

No files matched your search

+3 -2
View File
@@ -72,8 +72,9 @@ class Config extends ConfigBase<OB11Config> implements OB11Config {
RecordList: [] as Array<string>
};
getConfigPath() {
return path.join(this.getConfigDir(), `onebot11_${selfInfo.uin}.json`);
getConfigPath(pathName: string) {
const filename = `onebot11_${pathName ? "_" : ""}${pathName}.json`
return path.join(this.getConfigDir(), filename);
}
protected getKeys(): string[] | null {