mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
Merge pull request #138 from serfend/main
feat[config]support use default-template
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user